Class SampleSortTemplate
java.lang.Object
org.apache.drill.exec.physical.impl.orderedpartitioner.SampleSortTemplate
- All Implemented Interfaces:
- SampleSorter,- org.apache.hadoop.util.IndexedSortable
public abstract class SampleSortTemplate
extends Object
implements SampleSorter, org.apache.hadoop.util.IndexedSortable
- 
Field SummaryFields inherited from interface org.apache.drill.exec.physical.impl.orderedpartitioner.SampleSorterTEMPLATE_DEFINITION
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintcompare(int leftIndex, int rightIndex) abstract intdoEval(int leftIndex, int rightIndex) abstract voiddoSetup(FragmentContext context, VectorContainer incoming, RecordBatch outgoing) voidsetup(FragmentContext context, VectorContainer sampleBatch, SelectionVector2 vector2) voidsort(SelectionVector2 vector2, VectorContainer container) voidswap(int sv0, int sv1) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.drill.exec.physical.impl.orderedpartitioner.SampleSortersetup
- 
Constructor Details- 
SampleSortTemplatepublic SampleSortTemplate()
 
- 
- 
Method Details- 
setuppublic void setup(FragmentContext context, VectorContainer sampleBatch, SelectionVector2 vector2) throws SchemaChangeException - Throws:
- SchemaChangeException
 
- 
sort- Specified by:
- sortin interface- SampleSorter
 
- 
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") VectorContainer incoming, @Named("outgoing") RecordBatch outgoing) 
- 
doEvalpublic abstract int doEval(@Named("leftIndex") int leftIndex, @Named("rightIndex") int rightIndex) 
 
-