Class StreamingAggTemplate
java.lang.Object
org.apache.drill.exec.physical.impl.aggregate.StreamingAggTemplate
- All Implemented Interfaces:
StreamingAggregator
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.drill.exec.physical.impl.aggregate.StreamingAggregator
StreamingAggregator.AggOutcome -
Field Summary
Fields inherited from interface org.apache.drill.exec.physical.impl.aggregate.StreamingAggregator
TEMPLATE_DEFINITION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaddRecord(int index) voidcleanup()doWork(RecordBatch.IterOutcome outerOutcome) intabstract intgetVectorIndex(int recordIndex) booleanisDone()abstract booleanisSame(int index1, int index2) abstract booleanisSamePrev(int b1Index, InternalBatch b1, int b2Index) abstract voidoutputRecordKeys(int inIndex, int outIndex) abstract voidoutputRecordKeysPrev(InternalBatch previous, int previousIndex, int outIndex) abstract voidoutputRecordValues(int outIndex) booleanabstract booleanvoidsetup(OperatorContext context, RecordBatch incoming, StreamingAggBatch outgoing, int outputRowCount) abstract voidsetupInterior(RecordBatch incoming, RecordBatch outgoing) toString()
-
Constructor Details
-
StreamingAggTemplate
public StreamingAggTemplate()
-
-
Method Details
-
setup
public void setup(OperatorContext context, RecordBatch incoming, StreamingAggBatch outgoing, int outputRowCount) throws SchemaChangeException - Specified by:
setupin interfaceStreamingAggregator- Throws:
SchemaChangeException
-
getOutcome
- Specified by:
getOutcomein interfaceStreamingAggregator
-
getOutputCount
public int getOutputCount()- Specified by:
getOutputCountin interfaceStreamingAggregator
-
doWork
- Specified by:
doWorkin interfaceStreamingAggregator
-
isDone
public boolean isDone()- Specified by:
isDonein interfaceStreamingAggregator
-
cleanup
public void cleanup()- Specified by:
cleanupin interfaceStreamingAggregator
-
toString
-
previousBatchProcessed
public boolean previousBatchProcessed()- Specified by:
previousBatchProcessedin interfaceStreamingAggregator
-
setupInterior
public abstract void setupInterior(@Named("incoming") RecordBatch incoming, @Named("outgoing") RecordBatch outgoing) throws SchemaChangeException - Throws:
SchemaChangeException
-
isSame
public abstract boolean isSame(@Named("index1") int index1, @Named("index2") int index2) -
isSamePrev
public abstract boolean isSamePrev(@Named("b1Index") int b1Index, @Named("b1") InternalBatch b1, @Named("b2Index") int b2Index) -
addRecord
public abstract void addRecord(@Named("index") int index) -
outputRecordKeys
public abstract void outputRecordKeys(@Named("inIndex") int inIndex, @Named("outIndex") int outIndex) -
outputRecordKeysPrev
public abstract void outputRecordKeysPrev(@Named("previous") InternalBatch previous, @Named("previousIndex") int previousIndex, @Named("outIndex") int outIndex) -
outputRecordValues
public abstract void outputRecordValues(@Named("outIndex") int outIndex) -
getVectorIndex
public abstract int getVectorIndex(@Named("recordIndex") int recordIndex) -
resetValues
public abstract boolean resetValues()
-