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.BatchState
Nested classes/interfaces inherited from interface org.apache.drill.exec.record.RecordBatch
RecordBatch.IterOutcome
-
Field Summary
Fields inherited from class org.apache.drill.exec.record.AbstractRecordBatch
batchStatsContext, container, context, oContext, popConfig, state, stats, unionTypeEnabled
Fields inherited from interface org.apache.drill.exec.record.RecordBatch
MAX_BATCH_ROW_COUNT
-
Constructor Summary
ConstructorDescriptionHashAggBatch
(HashAggregate popConfig, RecordBatch incoming, FragmentContext context) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
protected void
void
close()
protected HashAggregator
void
dump()
Perform dump of this batch's state to logs.protected List<NamedExpression>
int
int
Get 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, schemaChangeException
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
incoming
-
-
Constructor Details
-
HashAggBatch
-
-
Method Details
-
getOutputRowCount
public int getOutputRowCount() -
getRecordBatchMemoryManager
-
getOutgoingContainer
- Specified by:
getOutgoingContainer
in interfaceRecordBatch
- Overrides:
getOutgoingContainer
in classAbstractRecordBatch<HashAggregate>
-
getRecordCount
public int getRecordCount()Description copied from interface:VectorAccessible
Get the number of records.- Returns:
- number of records
-
buildSchema
public void buildSchema()- Overrides:
buildSchema
in classAbstractRecordBatch<HashAggregate>
-
innerNext
- Specified by:
innerNext
in classAbstractRecordBatch<HashAggregate>
-
addComplexWriter
-
createAggregatorInternal
-
getKeyExpressions
-
getValueExpressions
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classAbstractRecordBatch<HashAggregate>
-
cancelIncoming
protected void cancelIncoming()- Specified by:
cancelIncoming
in classAbstractRecordBatch<HashAggregate>
-
dump
public void dump()Description copied from interface:RecordBatch
Perform dump of this batch's state to logs.
-