gudusoft.gsqlparser.nodes
Class TRollupCube

java.lang.Object
  extended by gudusoft.gsqlparser.nodes.TParseTreeNode
      extended by 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.


Field Summary
static int cube
           
static int rollup
           
 
Constructor Summary
TRollupCube()
           
 
Method Summary
 void doParse(TCustomSqlStatement psql, ESqlClause plocation)
          analyze this node
 TGroupingExpressionItemList getItems()
           
 int getOperation()
           
 void init(java.lang.Object arg1)
          Initialize a query tree node.
 void setOperation(int operation)
           
 
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
 

Field Detail

rollup

public static final int rollup
See Also:
Constant Field Values

cube

public static final int cube
See Also:
Constant Field Values
Constructor Detail

TRollupCube

public TRollupCube()
Method Detail

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