unity.query
Class LQJoinNode

java.lang.Object
  extended by unity.query.LQNode
      extended by unity.query.LQJoinNode
All Implemented Interfaces:
LQTreeConstants
Direct Known Subclasses:
LQMergeNode

public class LQJoinNode
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
LQJoinNode()
           
 
Method Summary
 Operator buildOperator(Operator[] children)
           
 void computeCost()
           
 java.lang.String generateSQL()
           
 LQCondNode getCondition()
           
 double getCost()
           
 boolean getNoDistributedJoin()
           
 int getNumTuples()
           
 int getOneSideRelation()
           
 java.util.ArrayList getRequiredFields()
           
 int getTupleSize()
           
 int numTuples()
           
 void setCondition(LQCondNode cond)
           
 void setJoinType(int jtype)
           
 void setLeftFields(java.util.ArrayList a)
           
 void setNoDistributedJoin(boolean b)
           
 void setRightFields(java.util.ArrayList a)
           
 void setSwap()
           
 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

LQJoinNode

public LQJoinNode()
Method Detail

setLeftFields

public void setLeftFields(java.util.ArrayList a)

setRightFields

public void setRightFields(java.util.ArrayList a)

getOneSideRelation

public int getOneSideRelation()

setNoDistributedJoin

public void setNoDistributedJoin(boolean b)

getNoDistributedJoin

public boolean getNoDistributedJoin()

setSwap

public void setSwap()

setJoinType

public void setJoinType(int jtype)

setCondition

public void setCondition(LQCondNode cond)

getCondition

public LQCondNode getCondition()

generateSQL

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

buildOperator

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

toString

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

getRequiredFields

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

getCost

public double getCost()

computeCost

public void computeCost()

getNumTuples

public int getNumTuples()

getTupleSize

public int getTupleSize()

numTuples

public int numTuples()
Overrides:
numTuples in class LQNode

tupleSize

public int tupleSize()
Overrides:
tupleSize in class LQNode