MCPcopy Create free account
hub / github.com/nutsdb/nutsdb / BTreeScanner

Struct BTreeScanner

internal/data/btree.go:207–223  ·  view source on GitHub ↗

BTreeScanner provides a fluent API for building BTree scan operations.

Source from the content-addressed store, hash-verified

205
206// BTreeScanner provides a fluent API for building BTree scan operations.
207type BTreeScanner struct {
208 bt *BTree
209 ttlChecker *ttl.Checker
210 ds uint16
211
212 // scan parameters
213 direction ScanDirection
214 pivot []byte
215 prefix []byte
216 startKey []byte
217 endKey []byte
218 regex *regexp.Regexp
219 offset int
220 limit int
221 filter func(*core.Item[core.Record]) bool
222 skipTTL bool
223}
224
225// newBTreeScanner creates a new BTreeScanner for the given BTree.
226func newBTreeScanner(bt *BTree) *BTreeScanner {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected