public abstract class StreamingAggTemplate extends Object implements StreamingAggregator
StreamingAggregator.AggOutcome
TEMPLATE_DEFINITION
Constructor and Description |
---|
StreamingAggTemplate() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addRecord(int index) |
void |
cleanup() |
StreamingAggregator.AggOutcome |
doWork(RecordBatch.IterOutcome outerOutcome) |
RecordBatch.IterOutcome |
getOutcome() |
int |
getOutputCount() |
abstract int |
getVectorIndex(int recordIndex) |
boolean |
isDone() |
abstract boolean |
isSame(int index1,
int index2) |
abstract boolean |
isSamePrev(int b1Index,
InternalBatch b1,
int b2Index) |
abstract void |
outputRecordKeys(int inIndex,
int outIndex) |
abstract void |
outputRecordKeysPrev(InternalBatch previous,
int previousIndex,
int outIndex) |
abstract void |
outputRecordValues(int outIndex) |
boolean |
previousBatchProcessed() |
abstract boolean |
resetValues() |
void |
setup(OperatorContext context,
RecordBatch incoming,
StreamingAggBatch outgoing,
int outputRowCount) |
abstract void |
setupInterior(RecordBatch incoming,
RecordBatch outgoing) |
String |
toString() |
public void setup(OperatorContext context, RecordBatch incoming, StreamingAggBatch outgoing, int outputRowCount) throws SchemaChangeException
setup
in interface StreamingAggregator
SchemaChangeException
public RecordBatch.IterOutcome getOutcome()
getOutcome
in interface StreamingAggregator
public int getOutputCount()
getOutputCount
in interface StreamingAggregator
public StreamingAggregator.AggOutcome doWork(RecordBatch.IterOutcome outerOutcome)
doWork
in interface StreamingAggregator
public boolean isDone()
isDone
in interface StreamingAggregator
public void cleanup()
cleanup
in interface StreamingAggregator
public boolean previousBatchProcessed()
previousBatchProcessed
in interface StreamingAggregator
public abstract void setupInterior(@Named(value="incoming") RecordBatch incoming, @Named(value="outgoing") RecordBatch outgoing) throws SchemaChangeException
SchemaChangeException
public abstract boolean isSame(@Named(value="index1") int index1, @Named(value="index2") int index2)
public abstract boolean isSamePrev(@Named(value="b1Index") int b1Index, @Named(value="b1") InternalBatch b1, @Named(value="b2Index") int b2Index)
public abstract void addRecord(@Named(value="index") int index)
public abstract void outputRecordKeys(@Named(value="inIndex") int inIndex, @Named(value="outIndex") int outIndex)
public abstract void outputRecordKeysPrev(@Named(value="previous") InternalBatch previous, @Named(value="previousIndex") int previousIndex, @Named(value="outIndex") int outIndex)
public abstract void outputRecordValues(@Named(value="outIndex") int outIndex)
public abstract int getVectorIndex(@Named(value="recordIndex") int recordIndex)
public abstract boolean resetValues()
Copyright © 1970 The Apache Software Foundation. All rights reserved.