use of com.baidu.hugegraph.computer.core.store.hgkvfile.file.reader.HgkvDirReader in project hugegraph-computer by hugegraph.
the class SorterImpl method iterator.
@Override
public PeekableIterator<KvEntry> iterator(List<String> inputs, boolean withSubKv) throws IOException {
InputsSorterImpl sorter = new InputsSorterImpl();
List<EntryIterator> entries = new ArrayList<>();
for (String input : inputs) {
HgkvDirReader reader = new HgkvDirReaderImpl(input, false, withSubKv);
entries.add(reader.iterator());
}
return PeekableIteratorAdaptor.of(sorter.sort(entries));
}
Aggregations