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
- Direct Known Subclasses:
- SqlAsofJoin
Parse tree node representing a 
JOIN clause.- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classDescribes the syntax of the SQLJOINoperator.
- 
Field SummaryFieldsFields inherited from class org.apache.calcite.sql.SqlNodeEMPTY_ARRAY, pos
- 
Constructor SummaryConstructorsConstructorDescriptionSqlJoin(SqlParserPos pos, SqlNode left, SqlLiteral natural, SqlLiteral joinType, SqlNode right, SqlLiteral conditionType, @Nullable SqlNode condition) 
- 
Method SummaryModifier and TypeMethodDescriptionfinal @Nullable SqlNodefinal JoinConditionTypeReturns aJoinConditionType, never null.final JoinTypeReturns aJoinType, never null.getKind()Returns the type of node this is, orSqlKind.OTHERif it's nothing special.final SqlNodegetLeft()Returns the list of operands.final SqlNodegetRight()final booleanfinal SqlLiteralvoidvoidsetOperand(int i, @Nullable SqlNode operand) Changes the value of an operand.voidtoSqlString(UnaryOperator<SqlWriterConfig> transform) Returns the SQL text of the tree of which thisSqlNodeis the root.Methods inherited from class org.apache.calcite.sql.SqlCallaccept, clone, equalsDeep, findValidOptions, getCallSignature, getFunctionQuantifier, getMonotonicity, isCountStar, isExpanded, operand, operandCount, unparse, validateMethods inherited from class org.apache.calcite.sql.SqlNodeclone, clone, cloneArray, equalDeep, equalDeep, equalsDeep, getParserPosition, isA, toList, toList, toSqlString, toSqlString, toString, unparseWithParentheses, validateExpr
- 
Field Details- 
OPERATOR
 
- 
- 
Constructor Details- 
SqlJoinpublic SqlJoin(SqlParserPos pos, SqlNode left, SqlLiteral natural, SqlLiteral joinType, SqlNode right, SqlLiteral conditionType, @Nullable SqlNode condition) 
 
- 
- 
Method Details- 
getOperator- Specified by:
- getOperatorin class- SqlCall
 
- 
getKindDescription copied from class:SqlNodeReturns the type of node this is, orSqlKind.OTHERif it's nothing special.
- 
getOperandListDescription copied from class:SqlCallReturns the list of operands. The set and order of operands is call-specific.Note: the proper type would be List<@Nullable SqlNode>, however, it would trigger too many changes to the current codebase.- Specified by:
- getOperandListin class- SqlCall
- Returns:
- the list of call operands, never null, the operands can be null
 
- 
setOperandDescription copied from class:SqlCallChanges the value of an operand. Allows some rewrite bySqlValidator; use sparingly.- Overrides:
- setOperandin class- SqlCall
- Parameters:
- i- Operand index
- operand- Operand value
 
- 
getCondition
- 
getConditionTypeReturns aJoinConditionType, never null.
- 
getConditionTypeNode
- 
getJoinTypeReturns aJoinType, never null.
- 
getJoinTypeNode
- 
getLeft
- 
setLeft
- 
isNaturalpublic final boolean isNatural()
- 
isNaturalNode
- 
getRight
- 
setRight
- 
toSqlStringDescription copied from class:SqlNodeReturns the SQL text of the tree of which thisSqlNodeis the root.Typical return values are: - 'It''s a bird!'
- NULL
- 12.3
- DATE '1969-04-29'
 - Overrides:
- toSqlStringin class- SqlNode
- Parameters:
- transform- Transform that sets desired writer configuration
 
 
-