Class FlattenTemplate
java.lang.Object
org.apache.drill.exec.physical.impl.flatten.FlattenTemplate
- All Implemented Interfaces:
Flattener
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.drill.exec.physical.impl.flatten.Flattener
Flattener.Monitor
-
Field Summary
Fields inherited from interface org.apache.drill.exec.physical.impl.flatten.Flattener
TEMPLATE_DEFINITION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
doEval
(int inIndex, int outIndex) abstract void
doSetup
(FragmentContext context, RecordBatch incoming, RecordBatch outgoing) final int
flattenRecords
(int recordCount, int firstOutputIndex, Flattener.Monitor monitor) void
void
setFlattenField
(RepeatedValueVector flattenField) void
setOutputCount
(int outputCount) final void
setup
(FragmentContext context, RecordBatch incoming, RecordBatch outgoing, List<TransferPair> transfers) toString()
-
Constructor Details
-
FlattenTemplate
public FlattenTemplate()
-
-
Method Details
-
setFlattenField
- Specified by:
setFlattenField
in interfaceFlattener
-
getFlattenField
- Specified by:
getFlattenField
in interfaceFlattener
-
setOutputCount
public void setOutputCount(int outputCount) - Specified by:
setOutputCount
in interfaceFlattener
-
flattenRecords
- Specified by:
flattenRecords
in interfaceFlattener
-
setup
public final void setup(FragmentContext context, RecordBatch incoming, RecordBatch outgoing, List<TransferPair> transfers) throws SchemaChangeException - Specified by:
setup
in interfaceFlattener
- Throws:
SchemaChangeException
-
resetGroupIndex
public void resetGroupIndex()- Specified by:
resetGroupIndex
in interfaceFlattener
-
doSetup
public abstract void doSetup(@Named("context") FragmentContext context, @Named("incoming") RecordBatch incoming, @Named("outgoing") RecordBatch outgoing) throws SchemaChangeException - Throws:
SchemaChangeException
-
doEval
public abstract boolean doEval(@Named("inIndex") int inIndex, @Named("outIndex") int outIndex) throws SchemaChangeException - Throws:
SchemaChangeException
-
toString
-