Class CombineSubKvInnerSortFlusher
- java.lang.Object
-
- org.apache.hugegraph.computer.core.sort.flusher.CombineSubKvInnerSortFlusher
-
- All Implemented Interfaces:
InnerSortFlusher
public class CombineSubKvInnerSortFlusher extends java.lang.Object implements InnerSortFlusher
-
-
Constructor Summary
Constructors Constructor Description CombineSubKvInnerSortFlusher(org.apache.hugegraph.computer.core.io.RandomAccessOutput output, PointerCombiner combiner, int subKvFlushThreshold)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PointerCombinercombiner()Combine entries with the same key.voidflush(java.util.Iterator<KvEntry> entries)Combine the list of inputValues, and write the combined result length and results to output.org.apache.hugegraph.computer.core.io.RandomAccessOutputoutput()Flush result to this output.
-
-
-
Constructor Detail
-
CombineSubKvInnerSortFlusher
public CombineSubKvInnerSortFlusher(org.apache.hugegraph.computer.core.io.RandomAccessOutput output, PointerCombiner combiner, int subKvFlushThreshold)
-
-
Method Detail
-
output
public org.apache.hugegraph.computer.core.io.RandomAccessOutput output()
Description copied from interface:InnerSortFlusherFlush result to this output.- Specified by:
outputin interfaceInnerSortFlusher
-
combiner
public PointerCombiner combiner()
Description copied from interface:InnerSortFlusherCombine entries with the same key.- Specified by:
combinerin interfaceInnerSortFlusher
-
flush
public void flush(java.util.Iterator<KvEntry> entries) throws java.io.IOException
Description copied from interface:InnerSortFlusherCombine the list of inputValues, and write the combined result length and results to output.- Specified by:
flushin interfaceInnerSortFlusher- Throws:
java.io.IOException
-
-