unity.query
Class LQExprNode

java.lang.Object
  extended by unity.query.LQNode
      extended by unity.query.LQExprNode
All Implemented Interfaces:
java.lang.Cloneable, LQTreeConstants

public class LQExprNode
extends LQNode
implements java.lang.Cloneable


Field Summary
 
Fields inherited from interface unity.query.LQTreeConstants
ADD, AGGREGATEFUNCTION, AND, APPEND, ARITH_OP, ARITHMETICFUNCTION, AS_IDENTIFIER, AS_TABLE, BAG_DIFFERENCE, BAG_INTERSECTION, BAG_UNION, BigDecimal, COMPARISON_OP, CONDITION, CONSTANTEXPRESSION, CROSSPRODUCT, DIFFERENCE, DISTRIBUTEDJOIN, DUPLICATE_ELIMINATION, DYNAMICHASHJOIN, EARLYHASHJOIN, EARLYHASHJOIN_NOBUFFER, EXPRESSION, FILTER, FULLOUTERJOIN, FUNCTION, GROUPBY, HAVING, IDENTIFIER, IN, INNERJOIN, INTEGER, INTERSECTION, JOIN, LEFTOUTERJOIN, MATCHFUNCTION, MERGE, MERGEJOIN, MINIMUM_JOIN_BUFFER_SIZE, MULT, MULT_OP, NESTEDLOOPJOIN, NOT, OR, ORDERBY, PRODUCT, PROJECTION, REAL, RIGHTOUTERJOIN, SELECTION, SQLPATTERN, STRING, TABLE, TABLE_IDENTIFIER, UNION, UNKNOWN, XOR
 
Constructor Summary
LQExprNode()
           
LQExprNode(LQExprNode n)
           
 
Method Summary
 Attribute buildAttribute()
           
 Expression buildExpression(Relation inputRelation, Attribute outputAttribute)
           
 Operator buildOperator(Operator[] children)
           
 java.lang.Object clone()
           
 java.lang.String generateSQL()
           
 java.util.ArrayList getRequiredFields()
           
static void loadFunctions()
           
 int numTuples()
           
 java.lang.String toString()
           
 int tupleSize()
           
 
Methods inherited from class unity.query.LQNode
addChild, containsChild, getAllExprNodes, getChild, getChild, getChildren, getContent, getNumChildren, getOperator, getOutputRelation, getParent, getReference, getType, hasChildren, indexOfChild, print, removeChild, removeChild, removeChild, replaceChild, setChild, setContent, setMemorySizeTuples, setOperator, setParent, setReference, setType, stripDBAttr, stripDBTable
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LQExprNode

public LQExprNode()

LQExprNode

public LQExprNode(LQExprNode n)
Method Detail

loadFunctions

public static void loadFunctions()
                          throws java.sql.SQLException
Throws:
java.sql.SQLException

generateSQL

public java.lang.String generateSQL()
Specified by:
generateSQL in class LQNode

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

buildOperator

public Operator buildOperator(Operator[] children)
Specified by:
buildOperator in class LQNode

buildExpression

public Expression buildExpression(Relation inputRelation,
                                  Attribute outputAttribute)
                           throws java.sql.SQLException
Throws:
java.sql.SQLException

buildAttribute

public Attribute buildAttribute()

getRequiredFields

public java.util.ArrayList getRequiredFields()
Overrides:
getRequiredFields in class LQNode

numTuples

public int numTuples()
Overrides:
numTuples in class LQNode

tupleSize

public int tupleSize()
Overrides:
tupleSize in class LQNode

clone

public java.lang.Object clone()
Overrides:
clone in class LQNode