MCPcopy Create free account
hub / github.com/ElementsProject/elements / MergingIterator

Method MergingIterator

src/leveldb/table/merger.cc:16–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14class MergingIterator : public Iterator {
15 public:
16 MergingIterator(const Comparator* comparator, Iterator** children, int n)
17 : comparator_(comparator),
18 children_(new IteratorWrapper[n]),
19 n_(n),
20 current_(nullptr),
21 direction_(kForward) {
22 for (int i = 0; i < n; i++) {
23 children_[i].Set(children[i]);
24 }
25 }
26
27 ~MergingIterator() override { delete[] children_; }
28

Callers

nothing calls this directly

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected