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 a
JOIN clause.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDescribes the syntax of the SQLJOINoperator. -
Field Summary
FieldsFields inherited from class org.apache.calcite.sql.SqlNode
EMPTY_ARRAY, pos -
Constructor Summary
ConstructorsConstructorDescriptionSqlJoin(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
Modifier and TypeMethodDescriptionfinal @Nullable org.apache.calcite.sql.SqlNodefinal org.apache.calcite.sql.JoinConditionTypeReturns aJoinConditionType, never null.org.apache.calcite.sql.SqlLiteralfinal org.apache.calcite.sql.JoinTypeReturns aJoinType, never null.org.apache.calcite.sql.SqlLiteralorg.apache.calcite.sql.SqlKindgetKind()final org.apache.calcite.sql.SqlNodegetLeft()List<org.apache.calcite.sql.SqlNode>org.apache.calcite.sql.SqlOperatorfinal org.apache.calcite.sql.SqlNodegetRight()final booleanfinal org.apache.calcite.sql.SqlLiteralvoidsetLeft(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, validateMethods inherited from class org.apache.calcite.sql.SqlNode
clone, clone, cloneArray, equalDeep, equalDeep, equalsDeep, getParserPosition, isA, toList, toList, toSqlString, toSqlString, toString, unparseWithParentheses, validateExpr
-
Field Details
-
OPERATOR
-
-
Constructor Details
-
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 Details
-
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
- 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
-