public class HashAggregate extends AbstractSingle
| Modifier and Type | Field and Description |
|---|---|
static String |
OPERATOR_TYPE |
childINIT_ALLOCATION, initialAllocation, MAX_ALLOCATION, maxAllocation| 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, iteratoraccept, getCost, getInitialAllocation, getMaxAllocation, getOperatorId, getSVMode, getUserName, isExecutable, setCost, setOperatorIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic 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
PhysicalOperatorE extends Throwableprotected PhysicalOperator getNewWithChild(PhysicalOperator child)
getNewWithChild in class AbstractSinglepublic String getOperatorType()
public void setMaxAllocation(long maxAllocation)
AbstractBasesetMaxAllocation in interface PhysicalOperatorsetMaxAllocation in class AbstractBasemaxAllocation - The max memory allocation to be setpublic boolean isBufferedOperator(QueryContext queryContext)
isBufferedOperator in interface PhysicalOperatorisBufferedOperator in class AbstractBasequeryContext - Copyright © 2021 The Apache Software Foundation. All rights reserved.