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 SummaryFields inherited from interface org.apache.drill.exec.physical.impl.xsort.SingleBatchSorterTEMPLATE_DEFINITION
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
SingleBatchSorterTemplatepublic SingleBatchSorterTemplate()
 
- 
- 
Method Details- 
setuppublic void setup(FragmentContext context, SelectionVector2 vector2, VectorAccessible incoming) throws SchemaChangeException - Specified by:
- setupin interface- SingleBatchSorter
- Throws:
- SchemaChangeException
 
- 
sort- Specified by:
- sortin interface- SingleBatchSorter
 
- 
swappublic void swap(int sv0, int sv1) - Specified by:
- swapin interface- org.apache.hadoop.util.IndexedSortable
 
- 
comparepublic int compare(int leftIndex, int rightIndex) - Specified by:
- comparein interface- org.apache.hadoop.util.IndexedSortable
 
- 
doSetuppublic abstract void doSetup(@Named("context") FragmentContext context, @Named("incoming") VectorAccessible incoming, @Named("outgoing") RecordBatch outgoing) throws SchemaChangeException - Throws:
- SchemaChangeException
 
- 
doEvalpublic abstract int doEval(@Named("leftIndex") char leftIndex, @Named("rightIndex") char rightIndex) throws SchemaChangeException - Throws:
- SchemaChangeException
 
- 
toString
 
-