Interface OuterSortFlusher
-
- All Known Implementing Classes:
CombineKvOuterSortFlusher,CombineSubKvOuterSortFlusher,KvOuterSortFlusher
public interface OuterSortFlusher
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default org.apache.hugegraph.computer.core.combiner.Combiner<Pointer>combiner()Combiner entries with the same key.voidflush(EntryIterator entries, KvEntryFileWriter writer)Combine the list of inputValues, and write the inputKey and combined result length and results to HgkvDirWriter.default voidsources(int sources)Number of path to generate entries iterator in flush method.
-
-
-
Method Detail
-
sources
default void sources(int sources)
Number of path to generate entries iterator in flush method. This method must be called before flush if sort with subKv.
-
combiner
default org.apache.hugegraph.computer.core.combiner.Combiner<Pointer> combiner()
Combiner entries with the same key.
-
flush
void flush(EntryIterator entries, KvEntryFileWriter writer) throws java.io.IOException
Combine the list of inputValues, and write the inputKey and combined result length and results to HgkvDirWriter. The caller maybe needs to call the sources method before call this method.- Throws:
java.io.IOException
-
-