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

Method PrefixSearchScan

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

PrefixSearchScan scans records with keys matching the given prefix and regex pattern. The regex is applied to the portion of the key after removing the prefix. offset: number of matching records to skip limitNum: maximum number of records to return

(prefix []byte, reg string, offset, limitNum int)

Source from the content-addressed store, hash-verified

103 // offset: number of matching records to skip
104 // limitNum: maximum number of records to return
105 PrefixSearchScan(prefix []byte, reg string, offset, limitNum int) []*core.Record
106
107 // PopMin removes and returns the item with the smallest key.
108 // Returns the item and true if the list is not empty, nil and false otherwise.

Callers 7

TestIsPrefixSearchScanFunction · 0.65
TestTx_PrefixSearchScanFunction · 0.65
PrefixScanEntriesMethod · 0.65
TestTx_CloseFunction · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by 6

TestIsPrefixSearchScanFunction · 0.52
TestTx_PrefixSearchScanFunction · 0.52
TestTx_CloseFunction · 0.52