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)
| 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. |
| 1104 | func (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. |
| 1115 | type TableInfo struct { |