com.simba.dsi.ext.aetree
Class AETop

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.AETop

public final class AETop
extends AERelationalExpr

A class that models a TOP N operation.

This relational operation does not change the metadata of the query operation that it operates on.

MAINTENANCE NOTE: TOP is inherently a query operation rather than a relational expression. However, due to the structure of the parse tree grammar, TOP must be located within the query specification. Therefore the AETop class must be an AERelationalExpr to be returned by the AEQuerySpecBuilder. But it must also have an operand of an AEQueryOperation so that the AEQueryBuilder can insert an optional AESort as its operand.


Constructor Summary
AETop(long objRef, boolean in_isPercent)
          Constructor.
 
Method Summary
 AEQueryOperation getOperand()
          Retrieves the query operation operand.
 AEValueExpr getValueExpr()
          Retrieves the value expression.
 boolean isPercent()
          Retrieves if this AETop represents TOP n PERCENT
 
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

AETop

public AETop(long objRef,
             boolean in_isPercent)
Constructor.

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

getOperand

public AEQueryOperation getOperand()
Retrieves the query operation operand.

Returns:
The query operation operand.

getValueExpr

public AEValueExpr getValueExpr()
Retrieves the value expression.

Returns:
The value expression.

isPercent

public boolean isPercent()
Retrieves if this AETop represents TOP n PERCENT

Returns:
True if this AETop represents TOP n PERCENT.


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