| Modifier and Type | Class and Description |
|---|---|
static class |
SqlJoin.SqlJoinOperator
Describes the syntax of the SQL
JOIN operator. |
| Modifier and Type | Field and Description |
|---|---|
static SqlJoin.SqlJoinOperator |
OPERATOR |
EMPTY_ARRAY, pos| Constructor and Description |
|---|
SqlJoin(SqlParserPos pos,
SqlNode left,
SqlLiteral natural,
SqlLiteral joinType,
SqlNode right,
SqlLiteral conditionType,
@Nullable SqlNode condition) |
| Modifier and Type | Method and Description |
|---|---|
@Nullable 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() |
List<SqlNode> |
getOperandList()
Returns the list of operands.
|
SqlOperator |
getOperator() |
SqlNode |
getRight() |
boolean |
isNatural() |
SqlLiteral |
isNaturalNode() |
void |
setLeft(SqlNode left) |
void |
setOperand(int i,
@Nullable SqlNode operand)
Changes the value of an operand.
|
void |
setRight(SqlNode right) |
SqlString |
toSqlString(UnaryOperator<SqlWriterConfig> transform)
Returns the SQL text of the tree of which this
SqlNode is
the root. |
accept, clone, equalsDeep, findValidOptions, getCallSignature, getFunctionQuantifier, getMonotonicity, isCountStar, isExpanded, operand, operandCount, unparse, validateclone, clone, cloneArray, equalDeep, equalDeep, equalsDeep, getParserPosition, isA, toList, toList, toSqlString, toSqlString, toString, unparseWithParentheses, validateExprpublic static final SqlJoin.SqlJoinOperator OPERATOR
public SqlJoin(SqlParserPos pos, SqlNode left, SqlLiteral natural, SqlLiteral joinType, SqlNode right, SqlLiteral conditionType, @Nullable SqlNode condition)
public SqlOperator getOperator()
getOperator in class SqlCallpublic SqlKind getKind()
SqlNodeSqlKind.OTHER if it's nothing special.getKind in class SqlCallSqlKind value, never nullSqlNode.isA(java.util.Set<org.apache.calcite.sql.SqlKind>)public List<SqlNode> getOperandList()
SqlCallNote: the proper type would be List<@Nullable SqlNode>, however,
it would trigger too many changes to the current codebase.
getOperandList in class SqlCallpublic void setOperand(int i,
@Nullable SqlNode operand)
SqlCallSqlValidator; use sparingly.setOperand in class SqlCalli - Operand indexoperand - Operand valuepublic final @Nullable 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)
public SqlString toSqlString(UnaryOperator<SqlWriterConfig> transform)
SqlNodeSqlNode is
the root.
Typical return values are:
toSqlString in class SqlNodetransform - Transform that sets desired writer configurationCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.