Class SqlJoin

java.lang.Object
org.apache.calcite.sql.SqlNode
org.apache.calcite.sql.SqlCall
org.apache.calcite.sql.SqlJoin
All Implemented Interfaces:
Cloneable

public class SqlJoin extends org.apache.calcite.sql.SqlCall
Parse tree node representing a JOIN clause.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Describes the syntax of the SQL JOIN operator.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     

    Fields inherited from class org.apache.calcite.sql.SqlNode

    EMPTY_ARRAY, pos
  • Constructor Summary

    Constructors
    Constructor
    Description
    SqlJoin(org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.calcite.sql.SqlNode left, org.apache.calcite.sql.SqlLiteral natural, org.apache.calcite.sql.SqlLiteral joinType, org.apache.calcite.sql.SqlNode right, org.apache.calcite.sql.SqlLiteral conditionType, @Nullable org.apache.calcite.sql.SqlNode condition)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final @Nullable org.apache.calcite.sql.SqlNode
     
    final org.apache.calcite.sql.JoinConditionType
    Returns a JoinConditionType, never null.
    org.apache.calcite.sql.SqlLiteral
     
    final org.apache.calcite.sql.JoinType
    Returns a JoinType, never null.
    org.apache.calcite.sql.SqlLiteral
     
    org.apache.calcite.sql.SqlKind
     
    final org.apache.calcite.sql.SqlNode
     
    List<org.apache.calcite.sql.SqlNode>
     
    org.apache.calcite.sql.SqlOperator
     
    final org.apache.calcite.sql.SqlNode
     
    final boolean
     
    final org.apache.calcite.sql.SqlLiteral
     
    void
    setLeft(org.apache.calcite.sql.SqlNode left)
     
    void
    setOperand(int i, @Nullable org.apache.calcite.sql.SqlNode operand)
     
    void
    setRight(org.apache.calcite.sql.SqlNode right)
     
    org.apache.calcite.sql.util.SqlString
    toSqlString(UnaryOperator<org.apache.calcite.sql.SqlWriterConfig> transform)
     

    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

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • SqlJoin

      public SqlJoin(org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.calcite.sql.SqlNode left, org.apache.calcite.sql.SqlLiteral natural, org.apache.calcite.sql.SqlLiteral joinType, org.apache.calcite.sql.SqlNode right, org.apache.calcite.sql.SqlLiteral conditionType, @Nullable org.apache.calcite.sql.SqlNode condition)
  • Method Details

    • getOperator

      public org.apache.calcite.sql.SqlOperator getOperator()
      Specified by:
      getOperator in class org.apache.calcite.sql.SqlCall
    • getKind

      public org.apache.calcite.sql.SqlKind getKind()
      Overrides:
      getKind in class org.apache.calcite.sql.SqlCall
    • getOperandList

      public List<org.apache.calcite.sql.SqlNode> getOperandList()
      Specified by:
      getOperandList in class org.apache.calcite.sql.SqlCall
    • setOperand

      public void setOperand(int i, @Nullable org.apache.calcite.sql.SqlNode operand)
      Overrides:
      setOperand in class org.apache.calcite.sql.SqlCall
    • getCondition

      public final @Nullable org.apache.calcite.sql.SqlNode getCondition()
    • getConditionType

      public final org.apache.calcite.sql.JoinConditionType getConditionType()
      Returns a JoinConditionType, never null.
    • getConditionTypeNode

      public org.apache.calcite.sql.SqlLiteral getConditionTypeNode()
    • getJoinType

      public final org.apache.calcite.sql.JoinType getJoinType()
      Returns a JoinType, never null.
    • getJoinTypeNode

      public org.apache.calcite.sql.SqlLiteral getJoinTypeNode()
    • getLeft

      public final org.apache.calcite.sql.SqlNode getLeft()
    • setLeft

      public void setLeft(org.apache.calcite.sql.SqlNode left)
    • isNatural

      public final boolean isNatural()
    • isNaturalNode

      public final org.apache.calcite.sql.SqlLiteral isNaturalNode()
    • getRight

      public final org.apache.calcite.sql.SqlNode getRight()
    • setRight

      public void setRight(org.apache.calcite.sql.SqlNode right)
    • toSqlString

      public org.apache.calcite.sql.util.SqlString toSqlString(UnaryOperator<org.apache.calcite.sql.SqlWriterConfig> transform)
      Overrides:
      toSqlString in class org.apache.calcite.sql.SqlNode