Class PinotSegmentSorter
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.readers.sort.PinotSegmentSorter
-
- All Implemented Interfaces:
SegmentSorter
public class PinotSegmentSorter extends Object implements SegmentSorter
Sorter implementation for pinot segments
-
-
Constructor Summary
Constructors Constructor Description PinotSegmentSorter(int numDocs, Map<String,PinotSegmentColumnReader> columnReaderMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]getSortedDocIds(List<String> sortOrder)Sort the segment by the sort order columns.
-
-
-
Constructor Detail
-
PinotSegmentSorter
public PinotSegmentSorter(int numDocs, Map<String,PinotSegmentColumnReader> columnReaderMap)
-
-
Method Detail
-
getSortedDocIds
public int[] getSortedDocIds(List<String> sortOrder)
Sort the segment by the sort order columns. Orderings are computed by comparing dictionary ids. TODO: add the support for no-dictionary and multi-value columns.- Specified by:
getSortedDocIdsin interfaceSegmentSorter- Parameters:
sortOrder- a list of column names that represent the sorting order- Returns:
- an array of sorted docIds
-
-