Class 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  SqlJoin.SqlJoinOperator
      Describes the syntax of the SQL JOIN operator.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static SqlJoin.SqlJoinOperator OPERATOR  
      • 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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @Nullable org.apache.calcite.sql.SqlNode getCondition()  
      org.apache.calcite.sql.JoinConditionType getConditionType()
      Returns a JoinConditionType, never null.
      org.apache.calcite.sql.SqlLiteral getConditionTypeNode()  
      org.apache.calcite.sql.JoinType getJoinType()
      Returns a JoinType, never null.
      org.apache.calcite.sql.SqlLiteral getJoinTypeNode()  
      org.apache.calcite.sql.SqlKind getKind()  
      org.apache.calcite.sql.SqlNode getLeft()  
      List<org.apache.calcite.sql.SqlNode> getOperandList()  
      org.apache.calcite.sql.SqlOperator getOperator()  
      org.apache.calcite.sql.SqlNode getRight()  
      boolean isNatural()  
      org.apache.calcite.sql.SqlLiteral isNaturalNode()  
      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
    • Constructor Detail

      • 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 Detail

      • 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