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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(int leftIndex, int rightIndex) abstract intdoEval(char leftIndex, char rightIndex) abstract voiddoSetup(FragmentContext context, VectorAccessible incoming, RecordBatch outgoing) voidsetup(FragmentContext context, SelectionVector2 vector2, VectorAccessible incoming) voidsort(SelectionVector2 vector2) voidswap(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:
setupin interfaceSingleBatchSorter- Throws:
SchemaChangeException
-
sort
- Specified by:
sortin interfaceSingleBatchSorter
-
swap
public void swap(int sv0, int sv1) - Specified by:
swapin interfaceorg.apache.hadoop.util.IndexedSortable
-
compare
public int compare(int leftIndex, int rightIndex) - Specified by:
comparein 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
-