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

Method Item

iterator.go:131–136  ·  view source on GitHub ↗

Item returns the current item (key + record) if valid This is useful for advanced use cases that need direct access to the record

()

Source from the content-addressed store, hash-verified

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
131func (it *Iterator) Item() *core.Item[core.Record] {
132 if !it.valid {
133 return nil
134 }
135 return it.currentItem
136}
137
138func (it *Iterator) Release() {
139 it.iter.Release()

Callers 9

TestIterator_ItemFunction · 0.95
TestIterator_EmptyBucketFunction · 0.95
NewIteratorFunction · 0.80
RewindMethod · 0.80
SeekMethod · 0.80
NextMethod · 0.80

Calls

no outgoing calls

Tested by 5

TestIterator_ItemFunction · 0.76
TestIterator_EmptyBucketFunction · 0.76