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
Fields inherited from class org.apache.drill.exec.physical.base.AbstractSingle
child
Fields inherited from class org.apache.drill.exec.physical.base.AbstractBase
INIT_ALLOCATION, initialAllocation, MAX_ALLOCATION, maxAllocation, userName
-
Constructor Summary
ConstructorDescriptionHashAggregate
(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.double
protected PhysicalOperator
getNewWithChild
(PhysicalOperator child) boolean
isBufferedOperator
(QueryContext queryContext) The Hash Aggregate operator supports spillingvoid
setMaxAllocation
(long maxAllocation) Any operator that supports spilling should override this methodtoString()
Methods inherited from class org.apache.drill.exec.physical.base.AbstractSingle
getChild, getNewWithChildren, iterator
Methods inherited from class org.apache.drill.exec.physical.base.AbstractBase
accept, getCost, getInitialAllocation, getMaxAllocation, getOperatorId, getSVMode, getUserName, isExecutable, setCost, setOperatorId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:PhysicalOperator
Provides capability to build a set of output based on traversing a query graph tree.- Throws:
E extends Throwable
-
getNewWithChild
- Specified by:
getNewWithChild
in classAbstractSingle
-
getOperatorType
-
setMaxAllocation
public void setMaxAllocation(long maxAllocation) Description copied from class:AbstractBase
Any operator that supports spilling should override this method- Specified by:
setMaxAllocation
in interfacePhysicalOperator
- Overrides:
setMaxAllocation
in classAbstractBase
- Parameters:
maxAllocation
- The max memory allocation to be set
-
isBufferedOperator
The Hash Aggregate operator supports spilling- Specified by:
isBufferedOperator
in interfacePhysicalOperator
- Overrides:
isBufferedOperator
in classAbstractBase
- Parameters:
queryContext
-- Returns:
- true (unless a single partition is forced)
-
toString
-