|
static SqlCreateTable | createTable (SqlParserPos pos, boolean temporary, boolean ifNotExists, SqlIdentifier name, SqlNodeList columnList, HeavyDBOptionsMap withOptions, SqlNode query) |
|
static SqlCreateView | createView (SqlParserPos pos, boolean ifNotExists, SqlIdentifier name, SqlNodeList columnList, SqlNode query) |
|
static SqlCreateModel | createModel (SqlParserPos pos, boolean replace, boolean ifNotExists, SqlIdentifier modelType, SqlIdentifier name, HeavyDBOptionsMap withOptions, SqlNode query) |
|
static SqlNode | column (SqlParserPos pos, SqlIdentifier name, HeavyDBSqlDataTypeSpec dataType, SqlNode defaultValue, ColumnStrategy strategy) |
|
static SqlNode | attribute (SqlParserPos pos, SqlIdentifier name, SqlDataTypeSpec dataType, SqlNode expression, SqlCollation collation) |
|
static SqlNode | check (SqlParserPos pos, SqlIdentifier name, SqlNode expression) |
|
static SqlKeyConstraint | unique (SqlParserPos pos, SqlIdentifier name, SqlNodeList columnList) |
|
static SqlKeyConstraint | primary (SqlParserPos pos, SqlIdentifier name, SqlNodeList columnList) |
|
static SqlKeyConstraint | shard (SqlParserPos pos, SqlIdentifier name) |
|
static SqlKeyConstraint | sharedDict (SqlParserPos pos, SqlIdentifier columnName, SqlIdentifier referencesColumn) |
|
Utilities concerning SqlNode for DDL.
Definition at line 34 of file SqlDdlNodes.java.
com.mapd.parser.extension.ddl.SqlDdlNodes.SqlDdlNodes |
( |
| ) |
|
|
inlineprivate |
static SqlNode com.mapd.parser.extension.ddl.SqlDdlNodes.attribute |
( |
SqlParserPos |
pos, |
|
|
SqlIdentifier |
name, |
|
|
SqlDataTypeSpec |
dataType, |
|
|
SqlNode |
expression, |
|
|
SqlCollation |
collation |
|
) |
| |
|
inlinestatic |
Creates an attribute definition.
Definition at line 80 of file SqlDdlNodes.java.
85 return new SqlAttributeDefinition(pos,
name, dataType, expression, collation);
static SqlNode com.mapd.parser.extension.ddl.SqlDdlNodes.check |
( |
SqlParserPos |
pos, |
|
|
SqlIdentifier |
name, |
|
|
SqlNode |
expression |
|
) |
| |
|
inlinestatic |
Creates a CHECK constraint.
Definition at line 89 of file SqlDdlNodes.java.
90 return new SqlCheckConstraint(pos,
name, expression);
static SqlNode com.mapd.parser.extension.ddl.SqlDdlNodes.column |
( |
SqlParserPos |
pos, |
|
|
SqlIdentifier |
name, |
|
|
HeavyDBSqlDataTypeSpec |
dataType, |
|
|
SqlNode |
defaultValue, |
|
|
ColumnStrategy |
strategy |
|
) |
| |
|
inlinestatic |
Creates a column declaration.
Definition at line 71 of file SqlDdlNodes.java.
76 return new SqlColumnDeclaration(pos,
name, dataType, defaultValue, strategy);
static SqlCreateModel com.mapd.parser.extension.ddl.SqlDdlNodes.createModel |
( |
SqlParserPos |
pos, |
|
|
boolean |
replace, |
|
|
boolean |
ifNotExists, |
|
|
SqlIdentifier |
modelType, |
|
|
SqlIdentifier |
name, |
|
|
HeavyDBOptionsMap |
withOptions, |
|
|
SqlNode |
query |
|
) |
| |
|
inlinestatic |
Creates a CREATE MODEL.
Definition at line 59 of file SqlDdlNodes.java.
66 return new SqlCreateModel(
67 pos, replace, ifNotExists, modelType,
name, withOptions, query);
static SqlCreateTable com.mapd.parser.extension.ddl.SqlDdlNodes.createTable |
( |
SqlParserPos |
pos, |
|
|
boolean |
temporary, |
|
|
boolean |
ifNotExists, |
|
|
SqlIdentifier |
name, |
|
|
SqlNodeList |
columnList, |
|
|
HeavyDBOptionsMap |
withOptions, |
|
|
SqlNode |
query |
|
) |
| |
|
inlinestatic |
Creates a CREATE TABLE.
Definition at line 38 of file SqlDdlNodes.java.
45 return new SqlCreateTable(
46 pos, temporary, ifNotExists,
name, columnList, withOptions, query);
static SqlCreateView com.mapd.parser.extension.ddl.SqlDdlNodes.createView |
( |
SqlParserPos |
pos, |
|
|
boolean |
ifNotExists, |
|
|
SqlIdentifier |
name, |
|
|
SqlNodeList |
columnList, |
|
|
SqlNode |
query |
|
) |
| |
|
inlinestatic |
Creates a CREATE VIEW.
Definition at line 50 of file SqlDdlNodes.java.
55 return new SqlCreateView(pos, ifNotExists,
name, columnList, query);
static SqlKeyConstraint com.mapd.parser.extension.ddl.SqlDdlNodes.primary |
( |
SqlParserPos |
pos, |
|
|
SqlIdentifier |
name, |
|
|
SqlNodeList |
columnList |
|
) |
| |
|
inlinestatic |
Creates a PRIMARY KEY constraint.
Definition at line 100 of file SqlDdlNodes.java.
102 return new SqlKeyConstraint(pos,
name, columnList) {
104 public SqlOperator getOperator() {
static SqlKeyConstraint com.mapd.parser.extension.ddl.SqlDdlNodes.shard |
( |
SqlParserPos |
pos, |
|
|
SqlIdentifier |
name |
|
) |
| |
|
inlinestatic |
static SqlKeyConstraint com.mapd.parser.extension.ddl.SqlDdlNodes.sharedDict |
( |
SqlParserPos |
pos, |
|
|
SqlIdentifier |
columnName, |
|
|
SqlIdentifier |
referencesColumn |
|
) |
| |
|
inlinestatic |
Creates a SHARED DICTIONARY constraint.
Definition at line 116 of file SqlDdlNodes.java.
118 return SqlKeyConstraint.sharedDict(pos, columnName, referencesColumn);
static SqlKeyConstraint com.mapd.parser.extension.ddl.SqlDdlNodes.unique |
( |
SqlParserPos |
pos, |
|
|
SqlIdentifier |
name, |
|
|
SqlNodeList |
columnList |
|
) |
| |
|
inlinestatic |
Creates a UNIQUE constraint.
Definition at line 94 of file SqlDdlNodes.java.
96 return new SqlKeyConstraint(pos,
name, columnList);
The documentation for this class was generated from the following file:
- /home/jenkins-slave/workspace/core-os-doxygen/java/calcite/src/main/java/com/mapd/parser/extension/ddl/SqlDdlNodes.java