public class SqlJoin extends SqlCall
JOIN
clause.Modifier and Type | Class and Description |
---|---|
static class |
SqlJoin.SqlJoinOperator
SqlJoinOperator describes the syntax of the SQL
JOIN operator. |
Modifier and Type | Field and Description |
---|---|
(package private) SqlNode |
condition |
(package private) SqlLiteral |
conditionType
Value must be a
SqlLiteral , one of the integer codes for
JoinConditionType . |
(package private) SqlLiteral |
joinType
Value must be a
SqlLiteral , one of the integer codes for
JoinType . |
(package private) SqlNode |
left |
(package private) SqlLiteral |
natural
Operand says whether this is a natural join.
|
static SqlJoin.SqlJoinOperator |
OPERATOR |
(package private) SqlNode |
right |
EMPTY_ARRAY, pos
Constructor and Description |
---|
SqlJoin(SqlParserPos pos,
SqlNode left,
SqlLiteral natural,
SqlLiteral joinType,
SqlNode right,
SqlLiteral conditionType,
SqlNode condition) |
Modifier and Type | Method and Description |
---|---|
SqlNode |
getCondition() |
JoinConditionType |
getConditionType()
Returns a
JoinConditionType , never null. |
SqlLiteral |
getConditionTypeNode() |
JoinType |
getJoinType()
Returns a
JoinType , never null. |
SqlLiteral |
getJoinTypeNode() |
SqlKind |
getKind()
Returns the type of node this is, or
SqlKind.OTHER if it's nothing special. |
SqlNode |
getLeft() |
java.util.List<SqlNode> |
getOperandList() |
SqlOperator |
getOperator() |
SqlNode |
getRight() |
boolean |
isNatural() |
SqlLiteral |
isNaturalNode() |
void |
setLeft(SqlNode left) |
void |
setOperand(int i,
SqlNode operand)
Changes the value of an operand.
|
void |
setRight(SqlNode right) |
accept, clone, equalsDeep, findValidOptions, getCallSignature, getFunctionQuantifier, getMonotonicity, isCountStar, isExpanded, operand, operandCount, unparse, validate
clone, clone, cloneArray, equalDeep, equalDeep, equalsDeep, getParserPosition, isA, toSqlString, toSqlString, toString, validateExpr
public static final SqlJoin.SqlJoinOperator OPERATOR
SqlNode left
SqlLiteral natural
SqlLiteral joinType
SqlLiteral
, one of the integer codes for
JoinType
.SqlNode right
SqlLiteral conditionType
SqlLiteral
, one of the integer codes for
JoinConditionType
.SqlNode condition
public SqlJoin(SqlParserPos pos, SqlNode left, SqlLiteral natural, SqlLiteral joinType, SqlNode right, SqlLiteral conditionType, SqlNode condition)
public SqlOperator getOperator()
getOperator
in class SqlCall
public SqlKind getKind()
SqlNode
SqlKind.OTHER
if it's nothing special.getKind
in class SqlCall
SqlKind
value, never nullSqlNode.isA(java.util.Set<org.apache.calcite.sql.SqlKind>)
public java.util.List<SqlNode> getOperandList()
getOperandList
in class SqlCall
public void setOperand(int i, SqlNode operand)
SqlCall
SqlValidator
; use sparingly.setOperand
in class SqlCall
i
- Operand indexoperand
- Operand valuepublic final SqlNode getCondition()
public final JoinConditionType getConditionType()
JoinConditionType
, never null.public SqlLiteral getConditionTypeNode()
public SqlLiteral getJoinTypeNode()
public final SqlNode getLeft()
public void setLeft(SqlNode left)
public final boolean isNatural()
public final SqlLiteral isNaturalNode()
public final SqlNode getRight()
public void setRight(SqlNode right)
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.