|
static SqlCreateTable | createTable (SqlParserPos pos, boolean replace, boolean temporary, boolean ifNotExists, SqlIdentifier name, SqlNodeList columnList, HeavyDBOptionsMap withOptions, SqlNode query) |
|
static SqlCreateView | createView (SqlParserPos pos, boolean replace, boolean ifNotExists, SqlIdentifier name, SqlNodeList columnList, 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 70 of file SqlDdlNodes.java.
75 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 79 of file SqlDdlNodes.java.
80 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 61 of file SqlDdlNodes.java.
66 return new SqlColumnDeclaration(pos,
name, dataType, defaultValue, strategy);
static SqlCreateTable com.mapd.parser.extension.ddl.SqlDdlNodes.createTable |
( |
SqlParserPos |
pos, |
|
|
boolean |
replace, |
|
|
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.
46 return new SqlCreateTable(
47 pos, replace, temporary, ifNotExists,
name, columnList, withOptions, query);
static SqlCreateView com.mapd.parser.extension.ddl.SqlDdlNodes.createView |
( |
SqlParserPos |
pos, |
|
|
boolean |
replace, |
|
|
boolean |
ifNotExists, |
|
|
SqlIdentifier |
name, |
|
|
SqlNodeList |
columnList, |
|
|
SqlNode |
query |
|
) |
| |
|
inlinestatic |
Creates a CREATE VIEW.
Definition at line 51 of file SqlDdlNodes.java.
57 return new SqlCreateView(pos, replace, 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 90 of file SqlDdlNodes.java.
92 return new SqlKeyConstraint(pos,
name, columnList) {
94 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 106 of file SqlDdlNodes.java.
108 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 84 of file SqlDdlNodes.java.
86 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