com.simba.dsi.ext.aetree
Class AEAggregate

java.lang.Object
  extended by com.simba.dsi.CppClassWrapper
      extended by com.simba.dsi.ext.aetree.AENode
          extended by com.simba.dsi.ext.aetree.AEQueryOperation
              extended by com.simba.dsi.ext.aetree.AERelationalExpr
                  extended by com.simba.dsi.ext.aetree.AEUnaryRelationalExpr
                      extended by com.simba.dsi.ext.aetree.AEAggregate

public final class AEAggregate
extends AEUnaryRelationalExpr

A class that models GROUP BY and aggregate functions.

In the standard relational algebra, there is no group operation. This class is designed to model the GROUP BY operation in SQL. Although not always, this operation is typically allocated with one of more aggregation functions: min, max, sum, avg, and count.

The AEAggregate relational operation has the general form of G<v_1, v_2, ...> (R) where v_i is a value expression defined either on one or more aggregation functions or attributes from the <group by clause>.

The following sample SQL query can be translated to an AEAggregate operation directly.

 SELECT SUM(c1), COUNT(*), MIN(c2) FROM A
 


Constructor Summary
AEAggregate(long objRef)
          Constructor.
 
Method Summary
 AEValueList getAggregationList()
          Retrieves a reference to the aggregation list.
 AEValueList getGroupingList()
          Retrieves a reference to the grouping list.
 boolean hasGroupingList()
          Tells whether a grouping list is present.
 
Methods inherited from class com.simba.dsi.ext.aetree.AEUnaryRelationalExpr
getOperand
 
Methods inherited from class com.simba.dsi.ext.aetree.AERelationalExpr
isNamed
 
Methods inherited from class com.simba.dsi.ext.aetree.AEQueryOperation
getColumn, getColumnCount
 
Methods inherited from class com.simba.dsi.ext.aetree.AENode
getChild, getChildCount, getNodeType
 
Methods inherited from class com.simba.dsi.CppClassWrapper
getObjRef
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AEAggregate

public AEAggregate(long objRef)
Constructor.

Parameters:
objRef - The corresponding C++ object reference.
Method Detail

getGroupingList

public AEValueList getGroupingList()
Retrieves a reference to the grouping list.

Returns:
a pointer reference to the grouping list.

hasGroupingList

public boolean hasGroupingList()
Tells whether a grouping list is present.

Returns:
true if the grouping list is present, false otherwise.

getAggregationList

public AEValueList getAggregationList()
Retrieves a reference to the aggregation list.

Returns:
A pointer reference to the aggregation list.


Copyright © 2006-2014 Simba Technologies Incorporated. All Rights Reserved.