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
Parent class for CREATE, DROP, DESCRIBE, ALTER SCHEMA commands.
Holds logic common command property: table, path.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic 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
Modifier and TypeFieldDescriptionprotected 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
ModifierConstructorDescriptionprotected
SqlSchema
(org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.calcite.sql.SqlIdentifier table, org.apache.calcite.sql.SqlNode path) -
Method Summary
Modifier and TypeMethodDescriptiongetPath()
getProperties
(org.apache.calcite.sql.SqlNodeList properties) org.apache.calcite.sql.SqlIdentifier
getTable()
boolean
hasTable()
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
-
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 classorg.apache.calcite.sql.SqlCall
-
hasTable
public boolean hasTable() -
getTable
public org.apache.calcite.sql.SqlIdentifier getTable() -
getSchemaPath
-
getTableName
-
getPath
-
getProperties
-