Package org.apache.calcite.sql
Class SqlAsofJoin
java.lang.Object
org.apache.calcite.sql.SqlNode
org.apache.calcite.sql.SqlCall
org.apache.calcite.sql.SqlJoin
org.apache.calcite.sql.SqlAsofJoin
- All Implemented Interfaces:
Cloneable
Parse tree node representing a
ASOF JOIN
clause.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Describes the syntax of the SQL ASOF JOIN operator.Nested classes/interfaces inherited from class org.apache.calcite.sql.SqlJoin
SqlJoin.SqlJoinOperator
-
Field Summary
Fields inherited from class org.apache.calcite.sql.SqlNode
EMPTY_ARRAY, pos
-
Constructor Summary
ConstructorDescriptionSqlAsofJoin
(SqlParserPos pos, SqlNode left, SqlLiteral natural, SqlLiteral joinType, SqlNode right, SqlLiteral conditionType, @Nullable SqlNode condition, SqlNode matchCondition) -
Method Summary
Modifier and TypeMethodDescriptionfinal SqlNode
The match condition of the ASOF JOIN.Returns the list of operands.void
setOperand
(int i, @Nullable SqlNode operand) Changes the value of an operand.toSqlString
(UnaryOperator<SqlWriterConfig> transform) Returns the SQL text of the tree of which thisSqlNode
is the root.Methods inherited from class org.apache.calcite.sql.SqlJoin
getCondition, getConditionType, getConditionTypeNode, getJoinType, getJoinTypeNode, getKind, getLeft, getRight, isNatural, isNaturalNode, setLeft, setRight
Methods inherited from class org.apache.calcite.sql.SqlCall
accept, clone, equalsDeep, findValidOptions, getCallSignature, getFunctionQuantifier, getMonotonicity, isCountStar, isExpanded, operand, operandCount, unparse, validate
Methods inherited from class org.apache.calcite.sql.SqlNode
clone, clone, cloneArray, equalDeep, equalDeep, equalsDeep, getParserPosition, isA, toList, toList, toSqlString, toSqlString, toString, unparseWithParentheses, validateExpr
-
Constructor Details
-
SqlAsofJoin
public SqlAsofJoin(SqlParserPos pos, SqlNode left, SqlLiteral natural, SqlLiteral joinType, SqlNode right, SqlLiteral conditionType, @Nullable SqlNode condition, SqlNode matchCondition)
-
-
Method Details
-
getOperandList
Description copied from class:SqlCall
Returns 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.- Overrides:
getOperandList
in classSqlJoin
- Returns:
- the list of call operands, never null, the operands can be null
-
getOperator
- Overrides:
getOperator
in classSqlJoin
-
setOperand
Description copied from class:SqlCall
Changes the value of an operand. Allows some rewrite bySqlValidator
; use sparingly.- Overrides:
setOperand
in classSqlJoin
- Parameters:
i
- Operand indexoperand
- Operand value
-
getMatchCondition
The match condition of the ASOF JOIN.- Returns:
- The match condition of the ASOF join.
-
toSqlString
Description copied from class:SqlNode
Returns the SQL text of the tree of which thisSqlNode
is the root.Typical return values are:
- 'It''s a bird!'
- NULL
- 12.3
- DATE '1969-04-29'
- Overrides:
toSqlString
in classSqlJoin
- Parameters:
transform
- Transform that sets desired writer configuration
-