first swing at mongo indexing (iterator todo)

This commit is contained in:
Barak Michener 2014-08-10 19:35:26 -04:00
parent 8821c1968d
commit ff148f58f8
2 changed files with 117 additions and 153 deletions

View file

@ -22,6 +22,10 @@ import (
"github.com/google/cayley/quad"
)
func init() {
graph.RegisterWriter("single", NewSingleReplication)
}
type Single struct {
nextID int64
ts graph.TripleStore
@ -79,7 +83,3 @@ func (s *Single) RemoveQuad(q quad.Quad) error {
}
return s.ts.ApplyDeltas(deltas)
}
func init() {
graph.RegisterWriter("single", NewSingleReplication)
}