mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
Rename Contiterator -> ContainerIterator
This commit is contained in:
parent
1c715aebe7
commit
71373945da
3 changed files with 5 additions and 5 deletions
|
|
@ -133,7 +133,7 @@ func (btc *BTreeContainers) Size() int {
|
|||
return btc.tree.Len()
|
||||
}
|
||||
|
||||
func (btc *BTreeContainers) Iterator(key uint64) (citer roaring.Contiterator, found bool) {
|
||||
func (btc *BTreeContainers) Iterator(key uint64) (citer roaring.ContainerIterator, found bool) {
|
||||
e, ok := btc.tree.Seek(key)
|
||||
if ok {
|
||||
found = true
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ func (sc *SliceContainers) seek(key uint64) (int, bool) {
|
|||
return i, found
|
||||
}
|
||||
|
||||
func (sc *SliceContainers) Iterator(key uint64) (citer Contiterator, found bool) {
|
||||
func (sc *SliceContainers) Iterator(key uint64) (citer ContainerIterator, found bool) {
|
||||
i, found := sc.seek(key)
|
||||
return &SliceIterator{e: sc, i: i}, found
|
||||
}
|
||||
|
|
|
|||
|
|
@ -93,10 +93,10 @@ type Containers interface {
|
|||
// Iterator returns a Contiterator which after a call to Next(), a call to Value() will
|
||||
// return the first container at or after key. found will be true if a
|
||||
// container is found at key.
|
||||
Iterator(key uint64) (citer Contiterator, found bool)
|
||||
Iterator(key uint64) (citer ContainerIterator, found bool)
|
||||
}
|
||||
|
||||
type Contiterator interface {
|
||||
type ContainerIterator interface {
|
||||
Next() bool
|
||||
Value() (uint64, *Container)
|
||||
}
|
||||
|
|
@ -798,7 +798,7 @@ type BitmapInfo struct {
|
|||
// Iterator represents an iterator over a Bitmap.
|
||||
type Iterator struct {
|
||||
bitmap *Bitmap
|
||||
citer Contiterator
|
||||
citer ContainerIterator
|
||||
key uint64
|
||||
c *Container
|
||||
j, k int // i: container; j: array index, bit index, or run index; k: offset within the run
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue