Class SqlSchema

java.lang.Object
org.apache.calcite.sql.SqlNode
org.apache.calcite.sql.SqlCall
org.apache.drill.exec.planner.sql.parser.DrillSqlCall
org.apache.drill.exec.planner.sql.parser.SqlSchema
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
SqlSchema.Add, SqlSchema.Create, SqlSchema.Describe, SqlSchema.Drop, SqlSchema.Remove

public abstract class SqlSchema extends DrillSqlCall
Parent class for CREATE, DROP, DESCRIBE, ALTER SCHEMA commands. Holds logic common command property: table, path.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
    CREATE SCHEMA sql call.
    static class 
    DESCRIBE SCHEMA FOR TABLE sql call.
    static class 
    DROP SCHEMA sql call.
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.apache.calcite.sql.SqlNode
     
    protected final org.apache.calcite.sql.SqlIdentifier
     

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

    EMPTY_ARRAY, pos
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    SqlSchema(org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.calcite.sql.SqlIdentifier table, org.apache.calcite.sql.SqlNode path)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    protected Map<String,String>
    getProperties(org.apache.calcite.sql.SqlNodeList properties)
     
     
    org.apache.calcite.sql.SqlIdentifier
     
     
    boolean
     
    void
    unparse(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)
     

    Methods inherited from class org.apache.drill.exec.planner.sql.parser.DrillSqlCall

    getSqlHandler, getSqlHandler

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

    accept, clone, equalsDeep, findValidOptions, getCallSignature, getFunctionQuantifier, getKind, getMonotonicity, getOperandList, getOperator, 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

    Methods inherited from class java.lang.Object

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

    • table

      protected final org.apache.calcite.sql.SqlIdentifier table
    • path

      protected final org.apache.calcite.sql.SqlNode path
  • Constructor Details

    • SqlSchema

      protected SqlSchema(org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.calcite.sql.SqlIdentifier table, org.apache.calcite.sql.SqlNode path)
  • Method Details

    • unparse

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

      public boolean hasTable()
    • getTable

      public org.apache.calcite.sql.SqlIdentifier getTable()
    • getSchemaPath

      public List<String> getSchemaPath()
    • getTableName

      public String getTableName()
    • getPath

      public String getPath()
    • getProperties

      protected Map<String,String> getProperties(org.apache.calcite.sql.SqlNodeList properties)