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

Method appendIterators

levels.go:1104–1112  ·  view source on GitHub ↗

appendIterators appends iterators to an array of iterators, for merging. Note: This obtains references for the table handlers. Remember to close these iterators.

(
	iters []y.Iterator, opt *IteratorOptions)

Source from the content-addressed store, hash-verified

1102// appendIterators appends iterators to an array of iterators, for merging.
1103// Note: This obtains references for the table handlers. Remember to close these iterators.
1104func (s *levelsController) appendIterators(
1105 iters []y.Iterator, opt *IteratorOptions) []y.Iterator {
1106 // Just like with get, it's important we iterate the levels from 0 on upward, to avoid missing
1107 // data when there's a compaction.
1108 for _, level := range s.levels {
1109 iters = level.appendIterators(iters, opt)
1110 }
1111 return iters
1112}
1113
1114// TableInfo represents the information about a table.
1115type TableInfo struct {

Callers 1

NewIteratorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected