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
Nested ClassesModifier and TypeClassDescriptionstatic classDescribes 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
ConstructorsConstructorDescriptionSqlAsofJoin(SqlParserPos pos, SqlNode left, SqlLiteral natural, SqlLiteral joinType, SqlNode right, SqlLiteral conditionType, @Nullable SqlNode condition, SqlNode matchCondition) -
Method Summary
Modifier and TypeMethodDescriptionfinal SqlNodeThe match condition of the ASOF JOIN.Returns the list of operands.voidsetOperand(int i, @Nullable SqlNode operand) Changes the value of an operand.toSqlString(UnaryOperator<SqlWriterConfig> transform) Returns the SQL text of the tree of which thisSqlNodeis the root.Methods inherited from class org.apache.calcite.sql.SqlJoin
getCondition, getConditionType, getConditionTypeNode, getJoinType, getJoinTypeNode, getKind, getLeft, getRight, isNatural, isNaturalNode, setLeft, setRightMethods 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
-
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: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.- Overrides:
getOperandListin classSqlJoin- Returns:
- the list of call operands, never null, the operands can be null
-
getOperator
- Overrides:
getOperatorin classSqlJoin
-
setOperand
Description copied from class:SqlCallChanges the value of an operand. Allows some rewrite bySqlValidator; use sparingly.- Overrides:
setOperandin 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: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 classSqlJoin- Parameters:
transform- Transform that sets desired writer configuration
-