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

Method Rewind

iterator.go:751–753  ·  view source on GitHub ↗

Rewind would rewind the iterator cursor all the way to zero-th position, which would be the smallest key if iterating forward, and largest if iterating backward. It does not keep track of whether the cursor started with a Seek().

()

Source from the content-addressed store, hash-verified

749// smallest key if iterating forward, and largest if iterating backward. It does not keep track of
750// whether the cursor started with a Seek().
751func (it *Iterator) Rewind() {
752 it.Seek(nil)
753}

Callers 15

TestWriteBatchFunction · 0.95
numKeysFunction · 0.95
numKeysManagedFunction · 0.95
TestWriteBatchManagedFunction · 0.95
TestWriteBatchDuplicateFunction · 0.95
TestConcurrentWriteFunction · 0.95
TestIterate2BasicFunction · 0.95
TestIterateParallelFunction · 0.95
TestIteratorPrefetchSizeFunction · 0.95

Calls 1

SeekMethod · 0.95

Tested by 15

TestWriteBatchFunction · 0.76
numKeysFunction · 0.76
numKeysManagedFunction · 0.76
TestWriteBatchManagedFunction · 0.76
TestWriteBatchDuplicateFunction · 0.76
TestConcurrentWriteFunction · 0.76
TestIterate2BasicFunction · 0.76
TestIterateParallelFunction · 0.76
TestIteratorPrefetchSizeFunction · 0.76