Package org.apache.calcite.sql
Class SqlJoin
- java.lang.Object
-
- org.apache.calcite.sql.SqlNode
-
- org.apache.calcite.sql.SqlCall
-
- org.apache.calcite.sql.SqlJoin
-
- All Implemented Interfaces:
Cloneable
public class SqlJoin extends org.apache.calcite.sql.SqlCall
Parse tree node representing aJOIN
clause.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SqlJoin.SqlJoinOperator
Describes the syntax of the SQLJOIN
operator.
-
Field Summary
Fields Modifier and Type Field Description static SqlJoin.SqlJoinOperator
OPERATOR
-
Constructor Summary
Constructors Constructor Description SqlJoin(org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.calcite.sql.SqlNode left, org.apache.calcite.sql.SqlLiteral natural, org.apache.calcite.sql.SqlLiteral joinType, org.apache.calcite.sql.SqlNode right, org.apache.calcite.sql.SqlLiteral conditionType, @Nullable org.apache.calcite.sql.SqlNode condition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable org.apache.calcite.sql.SqlNode
getCondition()
org.apache.calcite.sql.JoinConditionType
getConditionType()
Returns aJoinConditionType
, never null.org.apache.calcite.sql.SqlLiteral
getConditionTypeNode()
org.apache.calcite.sql.JoinType
getJoinType()
Returns aJoinType
, never null.org.apache.calcite.sql.SqlLiteral
getJoinTypeNode()
org.apache.calcite.sql.SqlKind
getKind()
org.apache.calcite.sql.SqlNode
getLeft()
List<org.apache.calcite.sql.SqlNode>
getOperandList()
org.apache.calcite.sql.SqlOperator
getOperator()
org.apache.calcite.sql.SqlNode
getRight()
boolean
isNatural()
org.apache.calcite.sql.SqlLiteral
isNaturalNode()
void
setLeft(org.apache.calcite.sql.SqlNode left)
void
setOperand(int i, @Nullable org.apache.calcite.sql.SqlNode operand)
void
setRight(org.apache.calcite.sql.SqlNode right)
org.apache.calcite.sql.util.SqlString
toSqlString(UnaryOperator<org.apache.calcite.sql.SqlWriterConfig> transform)
-
Methods inherited from class org.apache.calcite.sql.SqlCall
accept, clone, equalsDeep, findValidOptions, getCallSignature, getFunctionQuantifier, getMonotonicity, isCountStar, isExpanded, operand, operandCount, unparse, validate
-
-
-
-
Field Detail
-
OPERATOR
public static final SqlJoin.SqlJoinOperator OPERATOR
-
-
Constructor Detail
-
SqlJoin
public SqlJoin(org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.calcite.sql.SqlNode left, org.apache.calcite.sql.SqlLiteral natural, org.apache.calcite.sql.SqlLiteral joinType, org.apache.calcite.sql.SqlNode right, org.apache.calcite.sql.SqlLiteral conditionType, @Nullable org.apache.calcite.sql.SqlNode condition)
-
-
Method Detail
-
getOperator
public org.apache.calcite.sql.SqlOperator getOperator()
- Specified by:
getOperator
in classorg.apache.calcite.sql.SqlCall
-
getKind
public org.apache.calcite.sql.SqlKind getKind()
- Overrides:
getKind
in classorg.apache.calcite.sql.SqlCall
-
getOperandList
public List<org.apache.calcite.sql.SqlNode> getOperandList()
- Specified by:
getOperandList
in classorg.apache.calcite.sql.SqlCall
-
setOperand
public void setOperand(int i, @Nullable org.apache.calcite.sql.SqlNode operand)
- Overrides:
setOperand
in classorg.apache.calcite.sql.SqlCall
-
getCondition
public final @Nullable org.apache.calcite.sql.SqlNode getCondition()
-
getConditionType
public final org.apache.calcite.sql.JoinConditionType getConditionType()
Returns aJoinConditionType
, never null.
-
getConditionTypeNode
public org.apache.calcite.sql.SqlLiteral getConditionTypeNode()
-
getJoinType
public final org.apache.calcite.sql.JoinType getJoinType()
Returns aJoinType
, never null.
-
getJoinTypeNode
public org.apache.calcite.sql.SqlLiteral getJoinTypeNode()
-
getLeft
public final org.apache.calcite.sql.SqlNode getLeft()
-
setLeft
public void setLeft(org.apache.calcite.sql.SqlNode left)
-
isNatural
public final boolean isNatural()
-
isNaturalNode
public final org.apache.calcite.sql.SqlLiteral isNaturalNode()
-
getRight
public final org.apache.calcite.sql.SqlNode getRight()
-
setRight
public void setRight(org.apache.calcite.sql.SqlNode right)
-
toSqlString
public org.apache.calcite.sql.util.SqlString toSqlString(UnaryOperator<org.apache.calcite.sql.SqlWriterConfig> transform)
- Overrides:
toSqlString
in classorg.apache.calcite.sql.SqlNode
-
-