MCPcopy Index your code
hub / github.com/nutsdb/nutsdb / Value

Method Value

iterator.go:122–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120}
121
122func (it *Iterator) Value() ([]byte, error) {
123 if !it.valid {
124 return nil, ErrKeyNotFound
125 }
126 return it.tx.db.getValueByRecord(it.currentItem.Record)
127}
128
129// Item returns the current item (key + record) if valid
130// This is useful for advanced use cases that need direct access to the record

Callers 13

TestIteratorFunction · 0.95
TestIterator_ReverseFunction · 0.95
TestIterator_SeekFunction · 0.95
TestIterator_EmptyBucketFunction · 0.95
forwardIterationFunction · 0.95

Calls 1

getValueByRecordMethod · 0.80