public class HashAggregate extends AbstractSingle
Modifier and Type | Field and Description |
---|---|
static String |
OPERATOR_TYPE |
child
INIT_ALLOCATION, initialAllocation, MAX_ALLOCATION, maxAllocation, userName
Constructor and Description |
---|
HashAggregate(PhysicalOperator child,
AggPrelBase.OperatorPhase aggPhase,
List<NamedExpression> groupByExprs,
List<NamedExpression> aggrExprs,
float cardinality) |
Modifier and Type | Method and Description |
---|---|
<T,X,E extends Throwable> |
accept(PhysicalVisitor<T,X,E> physicalVisitor,
X value)
Provides capability to build a set of output based on traversing a query graph tree.
|
AggPrelBase.OperatorPhase |
getAggPhase() |
List<NamedExpression> |
getAggrExprs() |
double |
getCardinality() |
List<NamedExpression> |
getGroupByExprs() |
protected PhysicalOperator |
getNewWithChild(PhysicalOperator child) |
String |
getOperatorType() |
boolean |
isBufferedOperator(QueryContext queryContext)
The Hash Aggregate operator supports spilling
|
void |
setMaxAllocation(long maxAllocation)
Any operator that supports spilling should override this method
|
String |
toString() |
getChild, getNewWithChildren, iterator
accept, getCost, getInitialAllocation, getMaxAllocation, getOperatorId, getSVMode, getUserName, isExecutable, setCost, setOperatorId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public static final String OPERATOR_TYPE
public HashAggregate(PhysicalOperator child, AggPrelBase.OperatorPhase aggPhase, List<NamedExpression> groupByExprs, List<NamedExpression> aggrExprs, float cardinality)
public AggPrelBase.OperatorPhase getAggPhase()
public List<NamedExpression> getGroupByExprs()
public List<NamedExpression> getAggrExprs()
public double getCardinality()
public <T,X,E extends Throwable> T accept(PhysicalVisitor<T,X,E> physicalVisitor, X value) throws E extends Throwable
PhysicalOperator
E extends Throwable
protected PhysicalOperator getNewWithChild(PhysicalOperator child)
getNewWithChild
in class AbstractSingle
public String getOperatorType()
public void setMaxAllocation(long maxAllocation)
AbstractBase
setMaxAllocation
in interface PhysicalOperator
setMaxAllocation
in class AbstractBase
maxAllocation
- The max memory allocation to be setpublic boolean isBufferedOperator(QueryContext queryContext)
isBufferedOperator
in interface PhysicalOperator
isBufferedOperator
in class AbstractBase
queryContext
- Copyright © 2022 The Apache Software Foundation. All rights reserved.