gudusoft.gsqlparser.nodes
Class TRollupCube
java.lang.Object
gudusoft.gsqlparser.nodes.TParseTreeNode
gudusoft.gsqlparser.nodes.TRollupCube
- All Implemented Interfaces:
- Visitable
public class TRollupCube
- extends TParseTreeNode
The ROLLUP operation in the simple_grouping_clause groups the selected rows based on the values of the first n, n-1, n-2, ... 0 expressions in the GROUP
BY specification, and returns a single row of summary for each group.
The CUBE operation in the simple_grouping_clause groups the selected rows based on the values of all possible combinations of expressions in the specification.
It returns a single row of summary information for each group.
Methods inherited from class gudusoft.gsqlparser.nodes.TParseTreeNode |
accept, addAllMyTokensToTokenList, getColumnNo, getDummyTag, getEndToken, getGsqlparser, getLineNo, getNodeType, getStartToken, init, init, init, init, init, setDummyTag, setEndToken, setEndToken, setGsqlparser, setNodeType, setStartToken, setStartToken, setString, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
rollup
public static final int rollup
- See Also:
- Constant Field Values
cube
public static final int cube
- See Also:
- Constant Field Values
TRollupCube
public TRollupCube()
setOperation
public void setOperation(int operation)
getOperation
public int getOperation()
- Returns:
- rollup or cube operation.
getItems
public TGroupingExpressionItemList getItems()
- Returns:
- grouping expression list
- See Also:
TGroupingExpressionItem
init
public void init(java.lang.Object arg1)
- Description copied from class:
TParseTreeNode
- Initialize a query tree node.
- Overrides:
init
in class TParseTreeNode
doParse
public void doParse(TCustomSqlStatement psql,
ESqlClause plocation)
- Description copied from class:
TParseTreeNode
- analyze this node
- Overrides:
doParse
in class TParseTreeNode