public class BinaryExternalMerger extends AbstractBinaryExternalMerger<org.apache.flink.table.data.binary.BinaryRowData>
ioManager, pageSize| Constructor and Description |
|---|
BinaryExternalMerger(org.apache.flink.runtime.io.disk.iomanager.IOManager ioManager,
int pageSize,
int maxFanIn,
SpillChannelManager channelManager,
BinaryRowDataSerializer serializer,
RecordComparator comparator,
boolean compressionEnabled,
org.apache.flink.runtime.io.compression.BlockCompressionFactory compressionCodecFactory,
int compressionBlockSize) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.flink.util.MutableObjectIterator<org.apache.flink.table.data.binary.BinaryRowData> |
channelReaderInputViewIterator(org.apache.flink.runtime.io.disk.iomanager.AbstractChannelReaderInputView inView) |
protected Comparator<org.apache.flink.table.data.binary.BinaryRowData> |
mergeComparator() |
protected List<org.apache.flink.table.data.binary.BinaryRowData> |
mergeReusedEntries(int size) |
protected void |
writeMergingOutput(org.apache.flink.util.MutableObjectIterator<org.apache.flink.table.data.binary.BinaryRowData> mergeIterator,
org.apache.flink.runtime.memory.AbstractPagedOutputView output)
read the merged stream and write the data back.
|
close, getMergingIterator, mergeChannelListpublic BinaryExternalMerger(org.apache.flink.runtime.io.disk.iomanager.IOManager ioManager,
int pageSize,
int maxFanIn,
SpillChannelManager channelManager,
BinaryRowDataSerializer serializer,
RecordComparator comparator,
boolean compressionEnabled,
org.apache.flink.runtime.io.compression.BlockCompressionFactory compressionCodecFactory,
int compressionBlockSize)
protected org.apache.flink.util.MutableObjectIterator<org.apache.flink.table.data.binary.BinaryRowData> channelReaderInputViewIterator(org.apache.flink.runtime.io.disk.iomanager.AbstractChannelReaderInputView inView)
channelReaderInputViewIterator in class AbstractBinaryExternalMerger<org.apache.flink.table.data.binary.BinaryRowData>protected Comparator<org.apache.flink.table.data.binary.BinaryRowData> mergeComparator()
mergeComparator in class AbstractBinaryExternalMerger<org.apache.flink.table.data.binary.BinaryRowData>protected List<org.apache.flink.table.data.binary.BinaryRowData> mergeReusedEntries(int size)
mergeReusedEntries in class AbstractBinaryExternalMerger<org.apache.flink.table.data.binary.BinaryRowData>protected void writeMergingOutput(org.apache.flink.util.MutableObjectIterator<org.apache.flink.table.data.binary.BinaryRowData> mergeIterator,
org.apache.flink.runtime.memory.AbstractPagedOutputView output)
throws IOException
AbstractBinaryExternalMergerwriteMergingOutput in class AbstractBinaryExternalMerger<org.apache.flink.table.data.binary.BinaryRowData>IOExceptionCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.