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

Function appendIteratorsReversed

levels.go:1094–1100  ·  view source on GitHub ↗
(out []y.Iterator, th []*table.Table, reversed bool)

Source from the content-addressed store, hash-verified

1092}
1093
1094func appendIteratorsReversed(out []y.Iterator, th []*table.Table, reversed bool) []y.Iterator {
1095 for i := len(th) - 1; i >= 0; i-- {
1096 // This will increment the reference of the table handler.
1097 out = append(out, th[i].NewIterator(reversed))
1098 }
1099 return out
1100}
1101
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.

Callers 2

compactBuildTablesMethod · 0.85
appendIteratorsMethod · 0.85

Calls 1

NewIteratorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…