Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Commit 16849ea

Browse files
authored
Merge pull request #199 from kuba--/proposal-195/kv-iterator
Refactor index iterator interface.
2 parents 760cc83 + ecaf98e commit 16849ea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sql/index.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ import (
1515
type IndexKeyValueIter interface {
1616
// Next returns the next tuple of index key values. The length of the
1717
// returned slice will be the same as the number of columns used to
18-
// create this iterator.
19-
Next() ([]interface{}, error)
18+
// create this iterator. The second returned parameter is a repo's location.
19+
Next() ([]interface{}, []byte, error)
2020
io.Closer
2121
}
2222

2323
// IndexValueIter is an iterator of index values.
2424
type IndexValueIter interface {
25-
// Next returns the next index value.
26-
Next() (interface{}, error)
25+
// Next returns the next value (repo's location) - see IndexKeyValueIter.
26+
Next() ([]byte, error)
2727
io.Closer
2828
}
2929

0 commit comments

Comments
 (0)