| 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  
SortedRuns. | 
public IntervalPartition(List<DataFileMeta> inputFiles, Comparator<InternalRow> keyComparator)
public List<List<SortedRun>> partition()
SortedRuns.
 The elements of the outer list are sections. Key intervals between sections do not
 overlap. This extra layer is to minimize the number of SortedRuns dealt at the same
 time.
 
The elements of the inner list are SortedRuns 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.