public class GroupbyNode extends UnaryNode implements Projectable, Cloneable
| Constructor and Description |
|---|
GroupbyNode(int pid) |
| Modifier and Type | Method and Description |
|---|---|
int |
aggregationFunctionNum() |
Object |
clone() |
boolean |
equals(Object obj) |
AggregationFunctionCallEval[] |
getAggFunctions() |
Column[] |
getGroupingColumns() |
PlanString |
getPlanString() |
String |
getShortPlanString() |
Target[] |
getTargets()
Get a list of targets
|
int |
groupingKeyNum() |
boolean |
hasAggFunctions() |
boolean |
hasTargets()
check if this node has a target list
|
boolean |
isAggregationColumn(String simpleName)
It checks if an alias name included in the target of this node is for aggregation function.
|
boolean |
isDistinct() |
boolean |
isEmptyGrouping() |
void |
setAggFunctions(AggregationFunctionCallEval[] evals) |
void |
setChild(LogicalNode subNode) |
void |
setDistinct(boolean distinct) |
void |
setGroupingColumns(Column[] groupingKeys) |
void |
setTargets(Target[] targets)
Set a target list
|
String |
toString() |
childNum, deepEquals, getChild, getChild, postOrder, preOrdergetCost, getInSchema, getOutSchema, getPID, getType, setCost, setInSchema, setOutSchema, setPID, setType, toJsonfinalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetInSchema, getOutSchema, getPIDpublic int groupingKeyNum()
public final boolean isEmptyGrouping()
public void setGroupingColumns(Column[] groupingKeys)
public final Column[] getGroupingColumns()
public final boolean isDistinct()
public void setDistinct(boolean distinct)
public boolean hasAggFunctions()
public int aggregationFunctionNum()
public AggregationFunctionCallEval[] getAggFunctions()
public void setAggFunctions(AggregationFunctionCallEval[] evals)
public boolean hasTargets()
ProjectablehasTargets in interface Projectablepublic void setTargets(Target[] targets)
ProjectablesetTargets in interface Projectabletargets - The array of targetspublic Target[] getTargets()
ProjectablegetTargets in interface Projectablepublic void setChild(LogicalNode subNode)
public String toString()
toString in class LogicalNodepublic boolean equals(Object obj)
equals in class LogicalNodepublic Object clone() throws CloneNotSupportedException
clone in class UnaryNodeCloneNotSupportedExceptionpublic String getShortPlanString()
public PlanString getPlanString()
getPlanString in class LogicalNodepublic boolean isAggregationColumn(String simpleName)
Copyright © 2015 Apache Software Foundation. All Rights Reserved.