Class SqlAsofJoin

All Implemented Interfaces:
Cloneable

public class SqlAsofJoin extends SqlJoin
Parse tree node representing a ASOF JOIN clause.
  • Constructor Details

  • Method Details

    • getOperandList

      public List<SqlNode> 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 class SqlJoin
      Returns:
      the list of call operands, never null, the operands can be null
    • getOperator

      public SqlOperator getOperator()
      Overrides:
      getOperator in class SqlJoin
    • setOperand

      public void setOperand(int i, @Nullable SqlNode operand)
      Description copied from class: SqlCall
      Changes the value of an operand. Allows some rewrite by SqlValidator; use sparingly.
      Overrides:
      setOperand in class SqlJoin
      Parameters:
      i - Operand index
      operand - Operand value
    • getMatchCondition

      public final SqlNode getMatchCondition()
      The match condition of the ASOF JOIN.
      Returns:
      The match condition of the ASOF join.
    • toSqlString

      public SqlString toSqlString(UnaryOperator<SqlWriterConfig> transform)
      Description copied from class: SqlNode
      Returns the SQL text of the tree of which this SqlNode is the root.

      Typical return values are:

      • 'It''s a bird!'
      • NULL
      • 12.3
      • DATE '1969-04-29'
      Overrides:
      toSqlString in class SqlJoin
      Parameters:
      transform - Transform that sets desired writer configuration