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.SqlCallParse tree node representing aJOINclause.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSqlJoin.SqlJoinOperatorDescribes the syntax of the SQLJOINoperator.
-
Field Summary
Fields Modifier and Type Field Description static SqlJoin.SqlJoinOperatorOPERATOR
-
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.SqlNodegetCondition()org.apache.calcite.sql.JoinConditionTypegetConditionType()Returns aJoinConditionType, never null.org.apache.calcite.sql.SqlLiteralgetConditionTypeNode()org.apache.calcite.sql.JoinTypegetJoinType()Returns aJoinType, never null.org.apache.calcite.sql.SqlLiteralgetJoinTypeNode()org.apache.calcite.sql.SqlKindgetKind()org.apache.calcite.sql.SqlNodegetLeft()List<org.apache.calcite.sql.SqlNode>getOperandList()org.apache.calcite.sql.SqlOperatorgetOperator()org.apache.calcite.sql.SqlNodegetRight()booleanisNatural()org.apache.calcite.sql.SqlLiteralisNaturalNode()voidsetLeft(org.apache.calcite.sql.SqlNode left)voidsetOperand(int i, @Nullable org.apache.calcite.sql.SqlNode operand)voidsetRight(org.apache.calcite.sql.SqlNode right)org.apache.calcite.sql.util.SqlStringtoSqlString(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:
getOperatorin classorg.apache.calcite.sql.SqlCall
-
getKind
public org.apache.calcite.sql.SqlKind getKind()
- Overrides:
getKindin classorg.apache.calcite.sql.SqlCall
-
getOperandList
public List<org.apache.calcite.sql.SqlNode> getOperandList()
- Specified by:
getOperandListin classorg.apache.calcite.sql.SqlCall
-
setOperand
public void setOperand(int i, @Nullable org.apache.calcite.sql.SqlNode operand)- Overrides:
setOperandin 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:
toSqlStringin classorg.apache.calcite.sql.SqlNode
-
-