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

Struct Iterator

table/iterator.go:153–162  ·  view source on GitHub ↗

Iterator is an iterator for a Table.

Source from the content-addressed store, hash-verified

151
152// Iterator is an iterator for a Table.
153type Iterator struct {
154 t *Table
155 bpos int
156 bi blockIterator
157 err error
158
159 // Internally, Iterator is bidirectional. However, we only expose the
160 // unidirectional functionality for now.
161 reversed bool
162}
163
164// NewIterator returns a new iterator of the Table
165func (t *Table) NewIterator(reversed bool) *Iterator {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected