Class CombineSubKvOuterSortFlusher
- java.lang.Object
-
- org.apache.hugegraph.computer.core.sort.flusher.CombineSubKvOuterSortFlusher
-
- All Implemented Interfaces:
OuterSortFlusher
public class CombineSubKvOuterSortFlusher extends java.lang.Object implements OuterSortFlusher
-
-
Constructor Summary
Constructors Constructor Description CombineSubKvOuterSortFlusher(PointerCombiner combiner, int subKvFlushThreshold)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflush(EntryIterator entries, KvEntryFileWriter writer)Combine the list of inputValues, and write the inputKey and combined result length and results to HgkvDirWriter.voidsources(int sources)Number of path to generate entries iterator in flush method.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.hugegraph.computer.core.sort.flusher.OuterSortFlusher
combiner
-
-
-
-
Constructor Detail
-
CombineSubKvOuterSortFlusher
public CombineSubKvOuterSortFlusher(PointerCombiner combiner, int subKvFlushThreshold)
-
-
Method Detail
-
sources
public void sources(int sources)
Description copied from interface:OuterSortFlusherNumber of path to generate entries iterator in flush method. This method must be called before flush if sort with subKv.- Specified by:
sourcesin interfaceOuterSortFlusher
-
flush
public void flush(EntryIterator entries, KvEntryFileWriter writer) throws java.io.IOException
Description copied from interface:OuterSortFlusherCombine 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.- Specified by:
flushin interfaceOuterSortFlusher- Throws:
java.io.IOException
-
-