Added functionality so quadstore is generated per request (if needed) for the new appengine backend \n CR : nobody \n Tests run: unit tests
This commit is contained in:
parent
2c74cb1657
commit
35ccfe7677
8 changed files with 130 additions and 51 deletions
|
|
@ -33,7 +33,7 @@ import (
|
|||
)
|
||||
|
||||
func init() {
|
||||
graph.RegisterQuadStore("bolt", true, newQuadStore, createNewBolt)
|
||||
graph.RegisterQuadStore("bolt", true, newQuadStore, createNewBolt, nil)
|
||||
}
|
||||
|
||||
var (
|
||||
|
|
@ -44,6 +44,10 @@ var (
|
|||
localFillPercent = 0.7
|
||||
)
|
||||
|
||||
const (
|
||||
QuadStoreType = "bolt"
|
||||
)
|
||||
|
||||
type Token struct {
|
||||
bucket []byte
|
||||
key []byte
|
||||
|
|
@ -515,3 +519,7 @@ func compareTokens(a, b graph.Value) bool {
|
|||
func (qs *QuadStore) FixedIterator() graph.FixedIterator {
|
||||
return iterator.NewFixed(compareTokens)
|
||||
}
|
||||
|
||||
func (qs *QuadStore) GetType() string {
|
||||
return QuadStoreType
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue