| Modifier and Type | Class and Description |
|---|---|
static class |
SqlDdlNodes.FileType
File type for CREATE FUNCTION.
|
| Modifier | Constructor and Description |
|---|---|
private |
SqlDdlNodes() |
| Modifier and Type | Method and Description |
|---|---|
static SqlNode |
attribute(SqlParserPos pos,
SqlIdentifier name,
SqlDataTypeSpec dataType,
SqlNode expression,
SqlCollation collation)
Creates a attribute definition.
|
static SqlNode |
check(SqlParserPos pos,
SqlIdentifier name,
SqlNode expression)
Creates a CHECK constraint.
|
static SqlNode |
column(SqlParserPos pos,
SqlIdentifier name,
SqlDataTypeSpec dataType,
SqlNode expression,
ColumnStrategy strategy)
Creates a column declaration.
|
static SqlCreateForeignSchema |
createForeignSchema(SqlParserPos pos,
boolean replace,
boolean ifNotExists,
SqlIdentifier name,
SqlNode type,
SqlNode library,
SqlNodeList optionList)
Creates a CREATE FOREIGN SCHEMA.
|
static SqlCreateFunction |
createFunction(SqlParserPos pos,
boolean replace,
boolean ifNotExists,
SqlIdentifier name,
SqlNode className,
SqlNodeList usingList)
Creates a CREATE FUNCTION.
|
static SqlCreateMaterializedView |
createMaterializedView(SqlParserPos pos,
boolean replace,
boolean ifNotExists,
SqlIdentifier name,
SqlNodeList columnList,
SqlNode query)
Creates a CREATE MATERIALIZED VIEW.
|
static SqlCreateSchema |
createSchema(SqlParserPos pos,
boolean replace,
boolean ifNotExists,
SqlIdentifier name)
Creates a CREATE SCHEMA.
|
static SqlCreateTable |
createTable(SqlParserPos pos,
boolean replace,
boolean ifNotExists,
SqlIdentifier name,
SqlNodeList columnList,
SqlNode query)
Creates a CREATE TABLE.
|
static SqlCreateType |
createType(SqlParserPos pos,
boolean replace,
SqlIdentifier name,
SqlNodeList attributeList,
SqlDataTypeSpec dataTypeSpec)
Creates a CREATE TYPE.
|
static SqlCreateView |
createView(SqlParserPos pos,
boolean replace,
SqlIdentifier name,
SqlNodeList columnList,
SqlNode query)
Creates a CREATE VIEW.
|
static SqlDrop |
dropFunction(SqlParserPos pos,
boolean ifExists,
SqlIdentifier name)
Creates a DROP FUNCTION.
|
static SqlDrop |
dropMaterializedView(SqlParserPos pos,
boolean ifExists,
SqlIdentifier name)
Creates a DROP MATERIALIZED VIEW.
|
static SqlDropSchema |
dropSchema(SqlParserPos pos,
boolean foreign,
boolean ifExists,
SqlIdentifier name)
Creates a DROP [ FOREIGN ] SCHEMA.
|
static SqlDropTable |
dropTable(SqlParserPos pos,
boolean ifExists,
SqlIdentifier name)
Creates a DROP TABLE.
|
static SqlDropType |
dropType(SqlParserPos pos,
boolean ifExists,
SqlIdentifier name)
Creates a DROP TYPE.
|
static SqlDrop |
dropView(SqlParserPos pos,
boolean ifExists,
SqlIdentifier name)
Creates a DROP VIEW.
|
protected static void |
populate(SqlIdentifier name,
SqlNode query,
CalcitePrepare.Context context)
Populates the table called
name by executing query. |
static SqlKeyConstraint |
primary(SqlParserPos pos,
SqlIdentifier name,
SqlNodeList columnList)
Creates a PRIMARY KEY constraint.
|
(package private) static SqlNode |
renameColumns(SqlNodeList columnList,
SqlNode query)
Wraps a query to rename its columns.
|
(package private) static Pair<CalciteSchema,String> |
schema(CalcitePrepare.Context context,
boolean mutable,
SqlIdentifier id)
Returns the schema in which to create an object.
|
static SqlKeyConstraint |
unique(SqlParserPos pos,
SqlIdentifier name,
SqlNodeList columnList)
Creates a UNIQUE constraint.
|
(package private) static SqlValidator |
validator(CalcitePrepare.Context context,
boolean mutable)
Returns the SqlValidator with the given
context schema
and type factory. |
public static SqlCreateSchema createSchema(SqlParserPos pos, boolean replace, boolean ifNotExists, SqlIdentifier name)
public static SqlCreateForeignSchema createForeignSchema(SqlParserPos pos, boolean replace, boolean ifNotExists, SqlIdentifier name, SqlNode type, SqlNode library, SqlNodeList optionList)
public static SqlCreateType createType(SqlParserPos pos, boolean replace, SqlIdentifier name, SqlNodeList attributeList, SqlDataTypeSpec dataTypeSpec)
public static SqlCreateTable createTable(SqlParserPos pos, boolean replace, boolean ifNotExists, SqlIdentifier name, SqlNodeList columnList, SqlNode query)
public static SqlCreateView createView(SqlParserPos pos, boolean replace, SqlIdentifier name, SqlNodeList columnList, SqlNode query)
public static SqlCreateMaterializedView createMaterializedView(SqlParserPos pos, boolean replace, boolean ifNotExists, SqlIdentifier name, SqlNodeList columnList, SqlNode query)
public static SqlCreateFunction createFunction(SqlParserPos pos, boolean replace, boolean ifNotExists, SqlIdentifier name, SqlNode className, SqlNodeList usingList)
public static SqlDropSchema dropSchema(SqlParserPos pos, boolean foreign, boolean ifExists, SqlIdentifier name)
public static SqlDropType dropType(SqlParserPos pos, boolean ifExists, SqlIdentifier name)
public static SqlDropTable dropTable(SqlParserPos pos, boolean ifExists, SqlIdentifier name)
public static SqlDrop dropView(SqlParserPos pos, boolean ifExists, SqlIdentifier name)
public static SqlDrop dropMaterializedView(SqlParserPos pos, boolean ifExists, SqlIdentifier name)
public static SqlDrop dropFunction(SqlParserPos pos, boolean ifExists, SqlIdentifier name)
public static SqlNode column(SqlParserPos pos, SqlIdentifier name, SqlDataTypeSpec dataType, SqlNode expression, ColumnStrategy strategy)
public static SqlNode attribute(SqlParserPos pos, SqlIdentifier name, SqlDataTypeSpec dataType, SqlNode expression, SqlCollation collation)
public static SqlNode check(SqlParserPos pos, SqlIdentifier name, SqlNode expression)
public static SqlKeyConstraint unique(SqlParserPos pos, SqlIdentifier name, SqlNodeList columnList)
public static SqlKeyConstraint primary(SqlParserPos pos, SqlIdentifier name, SqlNodeList columnList)
static Pair<CalciteSchema,String> schema(CalcitePrepare.Context context, boolean mutable, SqlIdentifier id)
static SqlValidator validator(CalcitePrepare.Context context, boolean mutable)
context schema
and type factory.static SqlNode renameColumns(SqlNodeList columnList, SqlNode query)
protected static void populate(SqlIdentifier name, SqlNode query, CalcitePrepare.Context context)
name by executing query.Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.