public class JoinNode extends FromTable
Modifier and Type | Class and Description |
---|---|
static class |
JoinNode.JoinType |
Modifier and Type | Field and Description |
---|---|
protected ResultSetNode |
leftResultSet |
protected ResultSetNode |
rightResultSet |
correlationName, origTableName, tableProperties
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
Constructor and Description |
---|
JoinNode() |
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(QueryTreeNode node)
Fill this node with a deep copy of the given node.
|
java.lang.String |
getExposedName()
Return the exposed name for this table, which is the name that
can be used to refer to this table in the rest of the query.
|
ValueNode |
getJoinClause() |
ResultSetNode |
getLeftmostResultSet() |
ResultSetNode |
getLeftResultSet()
Get the leftResultSet from this node.
|
ResultSetNode |
getLogicalLeftResultSet()
Return the logical left result set for this qualified
join node.
|
ResultSetNode |
getLogicalRightResultSet()
Return the logical right result set for this qualified
join node.
|
ResultSetNode |
getRightResultSet()
Get the rightResultSet from this node.
|
ResultColumnList |
getUsingClause() |
void |
init(java.lang.Object leftResultSet,
java.lang.Object rightResultSet,
java.lang.Object tableProperties)
Initializer for a TableOperatorNode.
|
void |
init(java.lang.Object leftResult,
java.lang.Object rightResult,
java.lang.Object onClause,
java.lang.Object usingClause,
java.lang.Object selectList,
java.lang.Object tableProperties,
java.lang.Object joinOrderStrategyProperties)
Initializer for a JoinNode.
|
boolean |
isNaturalJoin()
Is this a natural join?
|
static java.lang.String |
joinTypeToString(JoinNode.JoinType joinType)
Convert the joinType to a string.
|
void |
printSubNodes(int depth)
Prints the sub-nodes of this object.
|
void |
setJoinClause(ValueNode joinClause) |
void |
setLeftmostResultSet(ResultSetNode newLeftResultSet) |
void |
setLeftResultSet(ResultSetNode leftResultSet) |
void |
setNestedInParens(boolean nestedInParens)
Mark whether or not this node is nested in parens.
|
void |
setRightResultSet(ResultSetNode rightResultSet) |
void |
setUsingClause(ResultColumnList usingClause) |
java.lang.String |
toString()
Convert this object to a String.
|
getCorrelationName, getOrigTableName, getTableName, init, setCorrelationName, setOrigTableName
getResultColumns, setInsertSource, setResultColumns
accept, convertDefaultNode, debugFlush, debugPrint, formatNodeString, getBeginOffset, getDebugOutput, getEndOffset, getNodeFactory, getNodeType, getNullNode, getParserContext, getStatementType, getUserData, init, init, init, init, init, init, init, init, init, init, init, isInstanceOf, makeTableName, makeTableName, nodeHeader, printLabel, setBeginOffset, setDebugOutput, setEndOffset, setNodeType, setParserContext, setUserData, stackPrint, treePrint, treePrint, treePrint
protected ResultSetNode leftResultSet
protected ResultSetNode rightResultSet
public void init(java.lang.Object leftResult, java.lang.Object rightResult, java.lang.Object onClause, java.lang.Object usingClause, java.lang.Object selectList, java.lang.Object tableProperties, java.lang.Object joinOrderStrategyProperties) throws StandardException
init
in class QueryTreeNode
leftResult
- The ResultSetNode on the left side of this joinrightResult
- The ResultSetNode on the right side of this joinonClause
- The ON clauseusingClause
- The USING clauseselectList
- The result column list for the jointableProperties
- Properties list associated with the tablejoinOrderStrategyProperties
- User provided optimizer overridesStandardException
- Thrown on errorpublic void copyFrom(QueryTreeNode node) throws StandardException
StandardException
public static java.lang.String joinTypeToString(JoinNode.JoinType joinType)
joinType
- The joinType as an enum.public ValueNode getJoinClause()
public void setJoinClause(ValueNode joinClause)
public ResultColumnList getUsingClause()
public void setUsingClause(ResultColumnList usingClause)
public java.lang.String toString()
public void printSubNodes(int depth)
depth
- The depth of this node in the treepublic boolean isNaturalJoin()
public ResultSetNode getLogicalLeftResultSet()
public ResultSetNode getLogicalRightResultSet()
public void init(java.lang.Object leftResultSet, java.lang.Object rightResultSet, java.lang.Object tableProperties) throws StandardException
init
in class QueryTreeNode
leftResultSet
- The ResultSetNode on the left side of this noderightResultSet
- The ResultSetNode on the right side of this nodetableProperties
- Properties list associated with the tableStandardException
- Thrown on errorpublic ResultSetNode getLeftResultSet()
public ResultSetNode getRightResultSet()
public void setLeftResultSet(ResultSetNode leftResultSet)
public void setRightResultSet(ResultSetNode rightResultSet)
public ResultSetNode getLeftmostResultSet()
public void setLeftmostResultSet(ResultSetNode newLeftResultSet)
public java.lang.String getExposedName()
getExposedName
in class FromTable
public void setNestedInParens(boolean nestedInParens)
nestedInParens
- Whether or not this node is nested in parens.Copyright © 2013. All Rights Reserved.