public class HashAggregate extends AbstractSingle
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) |
int |
getOperatorType() |
boolean |
isBufferedOperator()
The Hash Aggregate operator supports spilling
|
void |
setMaxAllocation(long maxAllocation)
Any operator that supports spilling should override this method
|
getChild, getNewWithChildren, iteratoraccept, getCost, getInitialAllocation, getMaxAllocation, getOperatorId, getSVMode, getUserName, isExecutable, setCost, setOperatorIdpublic 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 int getOperatorType()
public void setMaxAllocation(long maxAllocation)
AbstractBasesetMaxAllocation in interface PhysicalOperatorsetMaxAllocation in class AbstractBasemaxAllocation - The max memory allocation to be setpublic boolean isBufferedOperator()
isBufferedOperator in interface PhysicalOperatorisBufferedOperator in class AbstractBaseCopyright © 2017 The Apache Software Foundation. All rights reserved.