public class StreamingAggBatch extends AbstractRecordBatch<StreamingAggregate>
AbstractRecordBatch.BatchState
RecordBatch.IterOutcome
Modifier and Type | Field and Description |
---|---|
protected StreamingAggregator |
aggregator |
protected RecordBatch |
incoming |
batchStatsContext, container, context, oContext, popConfig, state, stats, unionTypeEnabled
MAX_BATCH_ROW_COUNT
Constructor and Description |
---|
StreamingAggBatch(StreamingAggregate popConfig,
RecordBatch incoming,
FragmentContext context) |
cancel, checkContinue, close, getContainer, getContext, getPopConfig, getRecordBatchStatsContext, getSchema, getSelectionVector2, getSelectionVector4, getValueAccessorById, getValueVectorId, getWritableBatch, isRecordBatchStatsLoggingEnabled, iterator, next, next, next, schemaChangeException, schemaChangeException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
protected StreamingAggregator aggregator
protected final RecordBatch incoming
public StreamingAggBatch(StreamingAggregate popConfig, RecordBatch incoming, FragmentContext context) throws OutOfMemoryException
OutOfMemoryException
public int getRecordCount()
VectorAccessible
public VectorContainer getOutgoingContainer()
getOutgoingContainer
in interface RecordBatch
getOutgoingContainer
in class AbstractRecordBatch<StreamingAggregate>
public void buildSchema()
buildSchema
in class AbstractRecordBatch<StreamingAggregate>
public RecordBatch.IterOutcome innerNext()
innerNext
in class AbstractRecordBatch<StreamingAggregate>
public void addComplexWriter(BaseWriter.ComplexWriter writer)
protected StreamingAggregator createAggregatorInternal()
protected List<NamedExpression> getValueExpressions()
protected List<NamedExpression> getKeyExpressions()
protected void setupIsSame(ClassGenerator<StreamingAggregator> cg, LogicalExpression[] keyExprs)
protected void setupIsSameApart(ClassGenerator<StreamingAggregator> cg, LogicalExpression[] keyExprs)
protected void addRecordValues(ClassGenerator<StreamingAggregator> cg, LogicalExpression[] valueExprs)
protected void outputRecordKeys(ClassGenerator<StreamingAggregator> cg, TypedFieldId[] keyOutputIds, LogicalExpression[] keyExprs)
protected void outputRecordKeysPrev(ClassGenerator<StreamingAggregator> cg, TypedFieldId[] keyOutputIds, LogicalExpression[] keyExprs)
protected void getIndex(ClassGenerator<StreamingAggregator> g)
protected void cancelIncoming()
cancelIncoming
in class AbstractRecordBatch<StreamingAggregate>
public void dump()
RecordBatch
public void setMaxOutputRowCount(int maxOutputRowCount)
Copyright © 1970 The Apache Software Foundation. All rights reserved.