Table of Contents

Class TRollupCube

Namespace
gudusoft.gsqlparser.nodes
Assembly
gudusoft.gsqlparser.dll

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.

public class TRollupCube : TParseTreeNode, Visitable
Inheritance
TRollupCube
Implements
Inherited Members

Fields

cube

public const int cube = 2

Field Value

int

rollup

public const int rollup = 1

Field Value

int

Properties

Items

public virtual TExpressionList Items { get; set; }

Property Value

TExpressionList

grouping expression list

See Also

Operation

public virtual int Operation { get; set; }

Property Value

int

Methods

accept(TParseTreeVisitor)

public override void accept(TParseTreeVisitor v)

Parameters

v TParseTreeVisitor

acceptChildren(TParseTreeVisitor)

public override void acceptChildren(TParseTreeVisitor v)

Parameters

v TParseTreeVisitor

doParse(TCustomSqlStatement, ESqlClause)

analyze this node

public override void doParse(TCustomSqlStatement psql, ESqlClause plocation)

Parameters

psql TCustomSqlStatement
plocation ESqlClause

init(object)

Initialize a query tree node.

public override void init(object arg1)

Parameters

arg1 object

setOperation(int)

public void setOperation(int op)

Parameters

op int