Class OrderedPartitionProjectorTemplate
java.lang.Object
org.apache.drill.exec.physical.impl.orderedpartitioner.OrderedPartitionProjectorTemplate
- All Implemented Interfaces:
OrderedPartitionProjector
public abstract class OrderedPartitionProjectorTemplate
extends Object
implements OrderedPartitionProjector
-
Field Summary
Fields inherited from interface org.apache.drill.exec.physical.impl.orderedpartitioner.OrderedPartitionProjector
TEMPLATE_DEFINITION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract int
doEval
(int inIndex, int partitionIndex) abstract void
doSetup
(FragmentContext context, VectorAccessible incoming, RecordBatch outgoing, VectorContainer partitionVectors) final int
projectRecords
(int recordCount, int firstOutputIndex) final void
setup
(FragmentContext context, VectorAccessible incoming, RecordBatch outgoing, List<TransferPair> transfers, VectorContainer partitionVectors, int partitions, SchemaPath outputField)
-
Constructor Details
-
OrderedPartitionProjectorTemplate
- Throws:
SchemaChangeException
-
-
Method Details
-
projectRecords
public final int projectRecords(int recordCount, int firstOutputIndex) - Specified by:
projectRecords
in interfaceOrderedPartitionProjector
-
setup
public final void setup(FragmentContext context, VectorAccessible incoming, RecordBatch outgoing, List<TransferPair> transfers, VectorContainer partitionVectors, int partitions, SchemaPath outputField) throws SchemaChangeException - Specified by:
setup
in interfaceOrderedPartitionProjector
- Throws:
SchemaChangeException
-
doSetup
public abstract void doSetup(@Named("context") FragmentContext context, @Named("incoming") VectorAccessible incoming, @Named("outgoing") RecordBatch outgoing, @Named("partitionVectors") VectorContainer partitionVectors) throws SchemaChangeException - Throws:
SchemaChangeException
-
doEval
public abstract int doEval(@Named("inIndex") int inIndex, @Named("partitionIndex") int partitionIndex) throws SchemaChangeException - Throws:
SchemaChangeException
-