Class HashAggBatch
java.lang.Object
org.apache.drill.exec.record.AbstractRecordBatch<HashAggregate>
org.apache.drill.exec.physical.impl.aggregate.HashAggBatch
- All Implemented Interfaces:
AutoCloseable,Iterable<VectorWrapper<?>>,CloseableRecordBatch,RecordBatch,VectorAccessible
- Direct Known Subclasses:
MetadataHashAggBatch
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.drill.exec.record.AbstractRecordBatch
AbstractRecordBatch.BatchStateNested classes/interfaces inherited from interface org.apache.drill.exec.record.RecordBatch
RecordBatch.IterOutcome -
Field Summary
FieldsFields inherited from class org.apache.drill.exec.record.AbstractRecordBatch
batchStatsContext, container, context, oContext, popConfig, state, stats, unionTypeEnabledFields inherited from interface org.apache.drill.exec.record.RecordBatch
MAX_BATCH_ROW_COUNT -
Constructor Summary
ConstructorsConstructorDescriptionHashAggBatch(HashAggregate popConfig, RecordBatch incoming, FragmentContext context) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprotected voidvoidclose()protected HashAggregatorvoiddump()Perform dump of this batch's state to logs.protected List<NamedExpression> intintGet the number of records.protected List<NamedExpression> Methods inherited from class org.apache.drill.exec.record.AbstractRecordBatch
cancel, checkContinue, getContainer, getContext, getPopConfig, getRecordBatchStatsContext, getSchema, getSelectionVector2, getSelectionVector4, getValueAccessorById, getValueVectorId, getWritableBatch, isRecordBatchStatsLoggingEnabled, iterator, next, next, next, schemaChangeException, schemaChangeExceptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
incoming
-
-
Constructor Details
-
HashAggBatch
-
-
Method Details
-
getOutputRowCount
public int getOutputRowCount() -
getRecordBatchMemoryManager
-
getOutgoingContainer
- Specified by:
getOutgoingContainerin interfaceRecordBatch- Overrides:
getOutgoingContainerin classAbstractRecordBatch<HashAggregate>
-
getRecordCount
public int getRecordCount()Description copied from interface:VectorAccessibleGet the number of records.- Returns:
- number of records
-
buildSchema
public void buildSchema()- Overrides:
buildSchemain classAbstractRecordBatch<HashAggregate>
-
innerNext
- Specified by:
innerNextin classAbstractRecordBatch<HashAggregate>
-
addComplexWriter
-
createAggregatorInternal
-
getKeyExpressions
-
getValueExpressions
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classAbstractRecordBatch<HashAggregate>
-
cancelIncoming
protected void cancelIncoming()- Specified by:
cancelIncomingin classAbstractRecordBatch<HashAggregate>
-
dump
public void dump()Description copied from interface:RecordBatchPerform dump of this batch's state to logs.
-