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

Method PrefixScan

internal/data/list.go:99–99  ·  view source on GitHub ↗

PrefixScan scans records with keys matching the given prefix. offset: number of matching records to skip limitNum: maximum number of records to return

(prefix []byte, offset, limitNum int)

Source from the content-addressed store, hash-verified

97 // offset: number of matching records to skip
98 // limitNum: maximum number of records to return
99 PrefixScan(prefix []byte, offset, limitNum int) []*core.Record
100
101 // PrefixSearchScan scans records with keys matching the given prefix and regex pattern.
102 // The regex is applied to the portion of the key after removing the prefix.

Callers 8

BenchmarkTx_PrefixScanFunction · 0.65
TestIsPrefixScanFunction · 0.65
TestTx_PrefixScanFunction · 0.65
TestTx_TTL_PrefixScanFunction · 0.65
PrefixScanEntriesMethod · 0.65
TestTx_CloseFunction · 0.65
TestBTree_PrefixScanFunction · 0.65

Implementers 2

DoublyLinkedListinternal/data/doubly_linked_list.go
BTreeinternal/data/btree.go

Calls

no outgoing calls

Tested by 7

BenchmarkTx_PrefixScanFunction · 0.52
TestIsPrefixScanFunction · 0.52
TestTx_PrefixScanFunction · 0.52
TestTx_TTL_PrefixScanFunction · 0.52
TestTx_CloseFunction · 0.52
TestBTree_PrefixScanFunction · 0.52