public class MergeSorter extends Object
Constructor and Description |
---|
MergeSorter(CoreOptions options,
RowType keyType,
RowType valueType,
IOManager ioManager) |
Modifier and Type | Method and Description |
---|---|
MemorySegmentPool |
memoryPool() |
<T> RecordReader<T> |
mergeSort(List<SizedReaderSupplier<KeyValue>> lazyReaders,
Comparator<InternalRow> keyComparator,
FieldsComparator userDefinedSeqComparator,
MergeFunctionWrapper<T> mergeFunction) |
<T> RecordReader<T> |
mergeSortNoSpill(List<? extends ReaderSupplier<KeyValue>> lazyReaders,
Comparator<InternalRow> keyComparator,
FieldsComparator userDefinedSeqComparator,
MergeFunctionWrapper<T> mergeFunction) |
void |
setIOManager(IOManager ioManager) |
void |
setProjectedValueType(RowType projectedType) |
RowType |
valueType() |
public MergeSorter(CoreOptions options, RowType keyType, RowType valueType, @Nullable IOManager ioManager)
public MemorySegmentPool memoryPool()
public RowType valueType()
public void setIOManager(IOManager ioManager)
public void setProjectedValueType(RowType projectedType)
public <T> RecordReader<T> mergeSort(List<SizedReaderSupplier<KeyValue>> lazyReaders, Comparator<InternalRow> keyComparator, @Nullable FieldsComparator userDefinedSeqComparator, MergeFunctionWrapper<T> mergeFunction) throws IOException
IOException
public <T> RecordReader<T> mergeSortNoSpill(List<? extends ReaderSupplier<KeyValue>> lazyReaders, Comparator<InternalRow> keyComparator, @Nullable FieldsComparator userDefinedSeqComparator, MergeFunctionWrapper<T> mergeFunction) throws IOException
IOException
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.