MCPcopy
hub / github.com/dgraph-io/badger / Valid

Method Valid

skl/skl.go:417–417  ·  view source on GitHub ↗

Valid returns true iff the iterator is positioned at a valid node.

()

Source from the content-addressed store, hash-verified

415
416// Valid returns true iff the iterator is positioned at a valid node.
417func (s *Iterator) Valid() bool { return s.n != nil }
418
419// Key returns the key at the current position.
420func (s *Iterator) Key() []byte {

Callers 15

TestWriteBatchFunction · 0.95
numKeysFunction · 0.95
numKeysManagedFunction · 0.95
TestWriteBatchManagedFunction · 0.95
TestWriteBatchDuplicateFunction · 0.95
produceKVsMethod · 0.95
buildL0TableFunction · 0.95
TestConcurrentWriteFunction · 0.95
TestGetMoreFunction · 0.95

Calls

no outgoing calls

Tested by 15

TestWriteBatchFunction · 0.76
numKeysFunction · 0.76
numKeysManagedFunction · 0.76
TestWriteBatchManagedFunction · 0.76
TestWriteBatchDuplicateFunction · 0.76
TestConcurrentWriteFunction · 0.76
TestGetMoreFunction · 0.76
TestIterate2BasicFunction · 0.76
TestIterateDeletedFunction · 0.76