public abstract class StreamingAggTemplate extends Object implements StreamingAggregator
StreamingAggregator.AggOutcomeTEMPLATE_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 StreamingAggregatorSchemaChangeExceptionpublic RecordBatch.IterOutcome getOutcome()
getOutcome in interface StreamingAggregatorpublic int getOutputCount()
getOutputCount in interface StreamingAggregatorpublic StreamingAggregator.AggOutcome doWork(RecordBatch.IterOutcome outerOutcome)
doWork in interface StreamingAggregatorpublic boolean isDone()
isDone in interface StreamingAggregatorpublic void cleanup()
cleanup in interface StreamingAggregatorpublic boolean previousBatchProcessed()
previousBatchProcessed in interface StreamingAggregatorpublic abstract void setupInterior(@Named(value="incoming")
RecordBatch incoming,
@Named(value="outgoing")
RecordBatch outgoing)
throws SchemaChangeException
SchemaChangeExceptionpublic 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 © 2022 The Apache Software Foundation. All rights reserved.