unity.query
Class LQProjNode

java.lang.Object
  extended by unity.query.LQNode
      extended by unity.query.LQProjNode
All Implemented Interfaces:
LQTreeConstants

public class LQProjNode
extends LQNode


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
LQProjNode()
           
 
Method Summary
 void addExpression(LQExprNode exprNode)
           
 void addNoDupExpression(LQExprNode newExprNode)
           
 Operator buildOperator(Operator[] opchildren)
           
 Relation buildOutputRelation()
           
 void CollectIdentifierExpression(LQExprNode lqNode, java.util.ArrayList projectFields)
           
 java.lang.String generateSQL()
           
 java.util.ArrayList getExpressions()
           
 java.util.ArrayList getProjectedFields(java.util.ArrayList projectFields)
           
 java.util.ArrayList getRequiredFields()
           
 boolean hasExpression(java.lang.String st)
           
 int numTuples()
           
 java.lang.String toString()
           
 int tupleSize()
           
 
Methods inherited from class unity.query.LQNode
addChild, clone, 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

LQProjNode

public LQProjNode()
Method Detail

addExpression

public void addExpression(LQExprNode exprNode)

addNoDupExpression

public void addNoDupExpression(LQExprNode newExprNode)

hasExpression

public boolean hasExpression(java.lang.String st)

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

buildOutputRelation

public Relation buildOutputRelation()

buildOperator

public Operator buildOperator(Operator[] opchildren)
                       throws java.sql.SQLException
Specified by:
buildOperator in class LQNode
Throws:
java.sql.SQLException

getProjectedFields

public java.util.ArrayList getProjectedFields(java.util.ArrayList projectFields)

CollectIdentifierExpression

public void CollectIdentifierExpression(LQExprNode lqNode,
                                        java.util.ArrayList projectFields)

getExpressions

public java.util.ArrayList getExpressions()

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