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

Method RangeScan

tx_btree.go:341–346  ·  view source on GitHub ↗

RangeScan query a range at given bucket, start and end slice.

(bucket string, start, end []byte)

Source from the content-addressed store, hash-verified

339
340// RangeScan query a range at given bucket, start and end slice.
341func (tx *Tx) RangeScan(bucket string, start, end []byte) (values [][]byte, err error) {
342 // RangeScan is kept as an API call to not break upstream projects that
343 // rely on it.
344 _, values, err = tx.RangeScanEntries(bucket, start, end, false, true)
345 return
346}
347
348// PrefixScanEntries iterates over a key prefix at given bucket, prefix and
349// limitNum. If reg is set a regular expression will be used to filter the

Callers 7

BenchmarkTx_RangeScanFunction · 0.80
TestTx_RangeScan_ErrFunction · 0.80
TestTx_RangeScanFunction · 0.80
TestTx_CloseFunction · 0.80

Calls 1

RangeScanEntriesMethod · 0.95

Tested by 7

BenchmarkTx_RangeScanFunction · 0.64
TestTx_RangeScan_ErrFunction · 0.64
TestTx_RangeScanFunction · 0.64
TestTx_CloseFunction · 0.64