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

Method Close

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

Close frees the resources held by the iterator

()

Source from the content-addressed store, hash-verified

409
410// Close frees the resources held by the iterator
411func (s *Iterator) Close() error {
412 s.list.DecrRef()
413 return nil
414}
415
416// Valid returns true iff the iterator is positioned at a valid node.
417func (s *Iterator) Valid() bool { return s.n != nil }

Callers 15

deleteMoveKeysForMethod · 0.95
TestWriteBatchFunction · 0.95
numKeysFunction · 0.95
numKeysManagedFunction · 0.95
TestWriteBatchManagedFunction · 0.95
TestWriteBatchDuplicateFunction · 0.95
produceKVsMethod · 0.95
buildL0TableFunction · 0.95

Calls 1

DecrRefMethod · 0.45

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