Class SqlCreateObject

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.calcite.sql.SqlCharStringLiteral comment  
      protected org.apache.calcite.sql.SqlIdentifier name  
      protected org.apache.calcite.sql.SqlNodeList properties  
      • Fields inherited from class org.apache.calcite.sql.SqlCreate

        ifNotExists
      • Fields inherited from class org.apache.calcite.sql.SqlDdl

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

        EMPTY_ARRAY, pos
    • Constructor Summary

      Constructors 
      Constructor Description
      SqlCreateObject​(org.apache.calcite.sql.SqlOperator operator, org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.calcite.sql.SqlIdentifier name, boolean isTemporary, boolean replace, boolean ifNotExists, org.apache.calcite.sql.SqlNodeList properties, org.apache.calcite.sql.SqlCharStringLiteral comment)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      String getComment()  
      String[] getFullName()  
      org.apache.calcite.sql.SqlIdentifier getName()  
      Map<String,​String> getProperties()  
      protected abstract String getScope()
      The scope will be used in unparse.
      boolean isIfNotExists()  
      boolean isTemporary()  
      void unparse​(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)  
      protected void unparseCreateIfNotExists​(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)  
      • Methods inherited from class org.apache.calcite.sql.SqlCreate

        getReplace, setReplace
      • Methods inherited from class org.apache.calcite.sql.SqlDdl

        getOperator
      • Methods inherited from class org.apache.calcite.sql.SqlCall

        accept, clone, equalsDeep, findValidOptions, getCallSignature, getFunctionQuantifier, getKind, getMonotonicity, getOperandList, isCountStar, isExpanded, operand, operandCount, setOperand, validate
      • Methods inherited from class org.apache.calcite.sql.SqlNode

        clone, clone, cloneArray, equalDeep, equalDeep, equalsDeep, getParserPosition, isA, toList, toList, toSqlString, toSqlString, toSqlString, toString, unparseWithParentheses, validateExpr
    • Field Detail

      • name

        protected final org.apache.calcite.sql.SqlIdentifier name
      • comment

        @Nullable
        protected final org.apache.calcite.sql.SqlCharStringLiteral comment
      • properties

        @Nullable
        protected final org.apache.calcite.sql.SqlNodeList properties
    • Constructor Detail

      • SqlCreateObject

        public SqlCreateObject​(org.apache.calcite.sql.SqlOperator operator,
                               org.apache.calcite.sql.parser.SqlParserPos pos,
                               org.apache.calcite.sql.SqlIdentifier name,
                               boolean isTemporary,
                               boolean replace,
                               boolean ifNotExists,
                               @Nullable
                               org.apache.calcite.sql.SqlNodeList properties,
                               @Nullable
                               org.apache.calcite.sql.SqlCharStringLiteral comment)
    • Method Detail

      • getScope

        protected abstract String getScope()
        The scope will be used in unparse.
      • isIfNotExists

        public boolean isIfNotExists()
      • isTemporary

        public boolean isTemporary()
      • getComment

        public String getComment()
      • getName

        public org.apache.calcite.sql.SqlIdentifier getName()
      • getFullName

        public String[] getFullName()
      • unparse

        public void unparse​(org.apache.calcite.sql.SqlWriter writer,
                            int leftPrec,
                            int rightPrec)
        Overrides:
        unparse in class org.apache.calcite.sql.SqlCall
      • unparseCreateIfNotExists

        protected void unparseCreateIfNotExists​(org.apache.calcite.sql.SqlWriter writer,
                                                int leftPrec,
                                                int rightPrec)