Constructor and Description |
---|
IntervalPartition(List<DataFileMeta> inputFiles,
Comparator<InternalRow> keyComparator) |
Modifier and Type | Method and Description |
---|---|
List<List<SortedRun>> |
partition()
Returns a two-dimensional list of
SortedRun s. |
public IntervalPartition(List<DataFileMeta> inputFiles, Comparator<InternalRow> keyComparator)
public List<List<SortedRun>> partition()
SortedRun
s.
The elements of the outer list are sections. Key intervals between sections do not
overlap. This extra layer is to minimize the number of SortedRun
s dealt at the same
time.
The elements of the inner list are SortedRun
s within a section.
Users are expected to use the results by this way:
for (List<SortedRun> section : algorithm.partition()) {
// do some merge sorting within section
}
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.