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 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(SqlParserPos pos, SqlNode left, SqlLiteral natural, SqlLiteral joinType, SqlNode right, SqlLiteral conditionType, @Nullable SqlNode condition) -
Method Summary
Modifier 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.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(SqlParserPos pos, SqlNode left, SqlLiteral natural, SqlLiteral joinType, SqlNode right, SqlLiteral conditionType, @Nullable SqlNode condition)
-
-
Method Details
-
getOperator
- Specified by:
getOperatorin classSqlCall
-
getKind
Description copied from class:SqlNodeReturns the type of node this is, orSqlKind.OTHERif it's nothing special. -
getOperandList
Description 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 classSqlCall- Returns:
- the list of call operands, never null, the operands can be null
-
setOperand
Description copied from class:SqlCallChanges the value of an operand. Allows some rewrite bySqlValidator; use sparingly.- Overrides:
setOperandin classSqlCall- Parameters:
i- Operand indexoperand- Operand value
-
getCondition
-
getConditionType
Returns aJoinConditionType, never null. -
getConditionTypeNode
-
getJoinType
Returns aJoinType, never null. -
getJoinTypeNode
-
getLeft
-
setLeft
-
isNatural
public final boolean isNatural() -
isNaturalNode
-
getRight
-
setRight
-
toSqlString
Description 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 classSqlNode- Parameters:
transform- Transform that sets desired writer configuration
-