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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classDescribes the syntax of the SQL ASOF JOIN operator.Nested classes/interfaces inherited from class org.apache.calcite.sql.SqlJoinSqlJoin.SqlJoinOperator
- 
Field SummaryFields inherited from class org.apache.calcite.sql.SqlNodeEMPTY_ARRAY, pos
- 
Constructor SummaryConstructorsConstructorDescriptionSqlAsofJoin(SqlParserPos pos, SqlNode left, SqlLiteral natural, SqlLiteral joinType, SqlNode right, SqlLiteral conditionType, @Nullable SqlNode condition, SqlNode matchCondition) 
- 
Method SummaryModifier 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.SqlJoingetCondition, getConditionType, getConditionTypeNode, getJoinType, getJoinTypeNode, getKind, getLeft, getRight, isNatural, isNaturalNode, setLeft, setRightMethods 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
- 
Constructor Details- 
SqlAsofJoinpublic SqlAsofJoin(SqlParserPos pos, SqlNode left, SqlLiteral natural, SqlLiteral joinType, SqlNode right, SqlLiteral conditionType, @Nullable SqlNode condition, SqlNode matchCondition) 
 
- 
- 
Method Details- 
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.- Overrides:
- getOperandListin class- SqlJoin
- Returns:
- the list of call operands, never null, the operands can be null
 
- 
getOperator- Overrides:
- getOperatorin class- SqlJoin
 
- 
setOperandDescription copied from class:SqlCallChanges the value of an operand. Allows some rewrite bySqlValidator; use sparingly.- Overrides:
- setOperandin class- SqlJoin
- Parameters:
- i- Operand index
- operand- Operand value
 
- 
getMatchConditionThe match condition of the ASOF JOIN.- Returns:
- The match condition of the ASOF join.
 
- 
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- SqlJoin
- Parameters:
- transform- Transform that sets desired writer configuration
 
 
-