Class SortTemplate
java.lang.Object
org.apache.drill.exec.physical.impl.sort.SortTemplate
- All Implemented Interfaces:
Sorter
,org.apache.hadoop.util.IndexedSortable
-
Field Summary
Fields inherited from interface org.apache.drill.exec.physical.impl.sort.Sorter
TEMPLATE_DEFINITION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compare
(int leftIndex, int rightIndex) abstract int
doEval
(int leftIndex, int rightIndex) abstract void
doSetup
(FragmentContext context, VectorContainer incoming, RecordBatch outgoing) void
setup
(FragmentContext context, SelectionVector4 vector4, VectorContainer hyperBatch) void
sort
(SelectionVector4 vector4, VectorContainer container) void
swap
(int sv0, int sv1) toString()
-
Constructor Details
-
SortTemplate
public SortTemplate()
-
-
Method Details
-
setup
public void setup(FragmentContext context, SelectionVector4 vector4, VectorContainer hyperBatch) throws SchemaChangeException - Specified by:
setup
in interfaceSorter
- Throws:
SchemaChangeException
-
sort
-
swap
public void swap(int sv0, int sv1) - Specified by:
swap
in interfaceorg.apache.hadoop.util.IndexedSortable
-
compare
public int compare(int leftIndex, int rightIndex) - Specified by:
compare
in interfaceorg.apache.hadoop.util.IndexedSortable
-
doSetup
public abstract void doSetup(@Named("context") FragmentContext context, @Named("incoming") VectorContainer incoming, @Named("outgoing") RecordBatch outgoing) -
doEval
public abstract int doEval(@Named("leftIndex") int leftIndex, @Named("rightIndex") int rightIndex) -
toString
-