Class PriorityQueueCopierTemplate
java.lang.Object
org.apache.drill.exec.physical.impl.xsort.PriorityQueueCopierTemplate
- All Implemented Interfaces:
AutoCloseable,PriorityQueueCopier
-
Field Summary
Fields inherited from interface org.apache.drill.exec.physical.impl.xsort.PriorityQueueCopier
TEMPLATE_DEFINITION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intcompare(int leftIndex, int rightIndex) abstract voiddoCopy(int inIndex, int outIndex) abstract intdoEval(int leftIndex, int rightIndex) abstract voiddoSetup(VectorAccessible incoming, VectorAccessible outgoing) intnext(int targetRecordCount) voidsetup(BufferAllocator allocator, VectorAccessible hyperBatch, List<BatchGroup> batchGroups, VectorAccessible outgoing) voidswap(int sv0, int sv1)
-
Constructor Details
-
PriorityQueueCopierTemplate
public PriorityQueueCopierTemplate()
-
-
Method Details
-
setup
public void setup(BufferAllocator allocator, VectorAccessible hyperBatch, List<BatchGroup> batchGroups, VectorAccessible outgoing) throws SchemaChangeException - Specified by:
setupin interfacePriorityQueueCopier- Throws:
SchemaChangeException
-
next
public int next(int targetRecordCount) - Specified by:
nextin interfacePriorityQueueCopier
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacePriorityQueueCopier- Throws:
IOException
-
swap
public void swap(int sv0, int sv1) -
compare
- Throws:
SchemaChangeException
-
doSetup
public abstract void doSetup(@Named("incoming") VectorAccessible incoming, @Named("outgoing") VectorAccessible outgoing) throws SchemaChangeException - Throws:
SchemaChangeException
-
doEval
public abstract int doEval(@Named("leftIndex") int leftIndex, @Named("rightIndex") int rightIndex) throws SchemaChangeException - Throws:
SchemaChangeException
-
doCopy
public abstract void doCopy(@Named("inIndex") int inIndex, @Named("outIndex") int outIndex) throws SchemaChangeException - Throws:
SchemaChangeException
-