Class HashAggregate
java.lang.Object
org.apache.drill.exec.physical.base.AbstractBase
org.apache.drill.exec.physical.base.AbstractSingle
org.apache.drill.exec.physical.config.HashAggregate
- All Implemented Interfaces:
Iterable<PhysicalOperator>,GraphValue<PhysicalOperator>,PhysicalOperator
- Direct Known Subclasses:
MetadataHashAggPOP
-
Field Summary
FieldsFields inherited from class org.apache.drill.exec.physical.base.AbstractSingle
childFields inherited from class org.apache.drill.exec.physical.base.AbstractBase
INIT_ALLOCATION, initialAllocation, MAX_ALLOCATION, maxAllocation, userName -
Constructor Summary
ConstructorsConstructorDescriptionHashAggregate(PhysicalOperator child, AggPrelBase.OperatorPhase aggPhase, List<NamedExpression> groupByExprs, List<NamedExpression> aggrExprs, float cardinality) -
Method Summary
Modifier and TypeMethodDescription<T,X, E extends Throwable>
Taccept(PhysicalVisitor<T, X, E> physicalVisitor, X value) Provides capability to build a set of output based on traversing a query graph tree.doubleprotected PhysicalOperatorgetNewWithChild(PhysicalOperator child) booleanisBufferedOperator(QueryContext queryContext) The Hash Aggregate operator supports spillingvoidsetMaxAllocation(long maxAllocation) Any operator that supports spilling should override this methodtoString()Methods inherited from class org.apache.drill.exec.physical.base.AbstractSingle
getChild, getNewWithChildren, iteratorMethods inherited from class org.apache.drill.exec.physical.base.AbstractBase
accept, getCost, getInitialAllocation, getMaxAllocation, getOperatorId, getSVMode, getUserName, isExecutable, setCost, setOperatorIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
OPERATOR_TYPE
- See Also:
-
-
Constructor Details
-
HashAggregate
public HashAggregate(PhysicalOperator child, AggPrelBase.OperatorPhase aggPhase, List<NamedExpression> groupByExprs, List<NamedExpression> aggrExprs, float cardinality)
-
-
Method Details
-
getAggPhase
-
getGroupByExprs
-
getAggrExprs
-
getCardinality
public double getCardinality() -
accept
public <T,X, T acceptE extends Throwable> (PhysicalVisitor<T, X, throws EE> physicalVisitor, X value) Description copied from interface:PhysicalOperatorProvides capability to build a set of output based on traversing a query graph tree.- Parameters:
physicalVisitor-- Throws:
E
-
getNewWithChild
- Specified by:
getNewWithChildin classAbstractSingle
-
getOperatorType
-
setMaxAllocation
public void setMaxAllocation(long maxAllocation) Description copied from class:AbstractBaseAny operator that supports spilling should override this method- Specified by:
setMaxAllocationin interfacePhysicalOperator- Overrides:
setMaxAllocationin classAbstractBase- Parameters:
maxAllocation- The max memory allocation to be set
-
isBufferedOperator
The Hash Aggregate operator supports spilling- Specified by:
isBufferedOperatorin interfacePhysicalOperator- Overrides:
isBufferedOperatorin classAbstractBase- Parameters:
queryContext-- Returns:
- true (unless a single partition is forced)
-
toString
-