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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
int
compare
(int leftIndex, int rightIndex) abstract void
doCopy
(int inIndex, int outIndex) abstract int
doEval
(int leftIndex, int rightIndex) abstract void
doSetup
(VectorAccessible incoming, VectorAccessible outgoing) int
next
(int targetRecordCount) void
setup
(BufferAllocator allocator, VectorAccessible hyperBatch, List<BatchGroup> batchGroups, VectorAccessible outgoing) void
swap
(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:
setup
in interfacePriorityQueueCopier
- Throws:
SchemaChangeException
-
next
public int next(int targetRecordCount) - Specified by:
next
in interfacePriorityQueueCopier
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-