Class SingleBatchSorterTemplate
java.lang.Object
org.apache.drill.exec.physical.impl.xsort.SingleBatchSorterTemplate
- All Implemented Interfaces:
SingleBatchSorter
,org.apache.hadoop.util.IndexedSortable
public abstract class SingleBatchSorterTemplate
extends Object
implements SingleBatchSorter, org.apache.hadoop.util.IndexedSortable
-
Field Summary
Fields inherited from interface org.apache.drill.exec.physical.impl.xsort.SingleBatchSorter
TEMPLATE_DEFINITION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compare
(int leftIndex, int rightIndex) abstract int
doEval
(char leftIndex, char rightIndex) abstract void
doSetup
(FragmentContext context, VectorAccessible incoming, RecordBatch outgoing) void
setup
(FragmentContext context, SelectionVector2 vector2, VectorAccessible incoming) void
sort
(SelectionVector2 vector2) void
swap
(int sv0, int sv1) toString()
-
Constructor Details
-
SingleBatchSorterTemplate
public SingleBatchSorterTemplate()
-
-
Method Details
-
setup
public void setup(FragmentContext context, SelectionVector2 vector2, VectorAccessible incoming) throws SchemaChangeException - Specified by:
setup
in interfaceSingleBatchSorter
- Throws:
SchemaChangeException
-
sort
- Specified by:
sort
in interfaceSingleBatchSorter
-
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") VectorAccessible incoming, @Named("outgoing") RecordBatch outgoing) throws SchemaChangeException - Throws:
SchemaChangeException
-
doEval
public abstract int doEval(@Named("leftIndex") char leftIndex, @Named("rightIndex") char rightIndex) throws SchemaChangeException - Throws:
SchemaChangeException
-
toString
-