Merge pull request #217 from barakmich/primarykey

Rewrite keys into concrete types, remove key package
This commit is contained in:
Barak Michener 2015-02-21 16:37:55 -05:00
commit 2c74cb1657
9 changed files with 96 additions and 93 deletions

View file

@ -29,7 +29,6 @@ import (
"github.com/google/cayley/graph"
"github.com/google/cayley/graph/iterator"
"github.com/google/cayley/keys"
"github.com/google/cayley/quad"
)
@ -127,7 +126,7 @@ func (qs *QuadStore) Size() int64 {
}
func (qs *QuadStore) Horizon() graph.PrimaryKey {
return keys.NewSequentialKey(qs.horizon)
return graph.NewSequentialKey(qs.horizon)
}
func (qs *QuadStore) createDeltaKeyFor(id int64) []byte {