MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / BtreeIterator

Struct BtreeIterator

engine/index/btree.go:72–76  ·  view source on GitHub ↗

BTreeIterator represents an iterator for BTree index.

Source from the content-addressed store, hash-verified

70
71// BTreeIterator represents an iterator for BTree index.
72type BtreeIterator struct {
73 currIndex int // Current index position during iteration
74 reverse bool // Whether it is a reverse iteration
75 values []*Item // Key + position index information
76}
77
78func NewBTreeIterator(tree *btree.BTree, reverse bool) *BtreeIterator {
79 var idx int

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected