public class BinaryExternalMerger extends AbstractBinaryExternalMerger<BinaryRowData>
ioManager, pageSize
Constructor and Description |
---|
BinaryExternalMerger(IOManager ioManager,
int pageSize,
int maxFanIn,
SpillChannelManager channelManager,
BinaryRowDataSerializer serializer,
RecordComparator comparator,
boolean compressionEnabled,
BlockCompressionFactory compressionCodecFactory,
int compressionBlockSize) |
Modifier and Type | Method and Description |
---|---|
protected MutableObjectIterator<BinaryRowData> |
channelReaderInputViewIterator(AbstractChannelReaderInputView inView) |
protected Comparator<BinaryRowData> |
mergeComparator() |
protected List<BinaryRowData> |
mergeReusedEntries(int size) |
protected void |
writeMergingOutput(MutableObjectIterator<BinaryRowData> mergeIterator,
AbstractPagedOutputView output)
read the merged stream and write the data back.
|
close, getMergingIterator, mergeChannelList
public BinaryExternalMerger(IOManager ioManager, int pageSize, int maxFanIn, SpillChannelManager channelManager, BinaryRowDataSerializer serializer, RecordComparator comparator, boolean compressionEnabled, BlockCompressionFactory compressionCodecFactory, int compressionBlockSize)
protected MutableObjectIterator<BinaryRowData> channelReaderInputViewIterator(AbstractChannelReaderInputView inView)
channelReaderInputViewIterator
in class AbstractBinaryExternalMerger<BinaryRowData>
protected Comparator<BinaryRowData> mergeComparator()
mergeComparator
in class AbstractBinaryExternalMerger<BinaryRowData>
protected List<BinaryRowData> mergeReusedEntries(int size)
mergeReusedEntries
in class AbstractBinaryExternalMerger<BinaryRowData>
protected void writeMergingOutput(MutableObjectIterator<BinaryRowData> mergeIterator, AbstractPagedOutputView output) throws IOException
AbstractBinaryExternalMerger
writeMergingOutput
in class AbstractBinaryExternalMerger<BinaryRowData>
IOException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.