OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mapd.parser.extension.ddl.SqlDdlNodes Class Reference

Classes

enum  FileType
 

Static Public Member Functions

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 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)
 

Private Member Functions

 SqlDdlNodes ()
 

Detailed Description

Utilities concerning SqlNode for DDL.

Definition at line 34 of file SqlDdlNodes.java.

Constructor & Destructor Documentation

com.mapd.parser.extension.ddl.SqlDdlNodes.SqlDdlNodes ( )
inlineprivate

Definition at line 35 of file SqlDdlNodes.java.

35 {}

Member Function Documentation

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 82 of file SqlDdlNodes.java.

86  {
87  return new SqlAttributeDefinition(pos, name, dataType, expression, collation);
88  }
string name
Definition: setup.in.py:72
static SqlNode com.mapd.parser.extension.ddl.SqlDdlNodes.check ( SqlParserPos  pos,
SqlIdentifier  name,
SqlNode  expression 
)
inlinestatic

Creates a CHECK constraint.

Definition at line 91 of file SqlDdlNodes.java.

91  {
92  return new SqlCheckConstraint(pos, name, expression);
93  }
string name
Definition: setup.in.py:72
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 73 of file SqlDdlNodes.java.

77  {
78  return new SqlColumnDeclaration(pos, name, dataType, defaultValue, strategy);
79  }
string name
Definition: setup.in.py:72
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 61 of file SqlDdlNodes.java.

67  {
68  return new SqlCreateModel(
69  pos, replace, ifNotExists, modelType, name, withOptions, query);
70  }
string name
Definition: setup.in.py:72
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.

45  {
46  return new SqlCreateTable(
47  pos, replace, temporary, ifNotExists, name, columnList, withOptions, query);
48  }
string name
Definition: setup.in.py:72
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.

56  {
57  return new SqlCreateView(pos, replace, ifNotExists, name, columnList, query);
58  }
string name
Definition: setup.in.py:72
static SqlKeyConstraint com.mapd.parser.extension.ddl.SqlDdlNodes.primary ( SqlParserPos  pos,
SqlIdentifier  name,
SqlNodeList  columnList 
)
inlinestatic

Creates a PRIMARY KEY constraint.

Definition at line 102 of file SqlDdlNodes.java.

103  {
104  return new SqlKeyConstraint(pos, name, columnList) {
105  @Override
106  public SqlOperator getOperator() {
107  return PRIMARY;
108  }
109  };
110  }
string name
Definition: setup.in.py:72
static SqlKeyConstraint com.mapd.parser.extension.ddl.SqlDdlNodes.shard ( SqlParserPos  pos,
SqlIdentifier  name 
)
inlinestatic

Creates a SHARD KEY constraint.

Definition at line 113 of file SqlDdlNodes.java.

References setup.name.

113  {
114  return SqlKeyConstraint.shard(pos, name);
115  }
string name
Definition: setup.in.py:72
static SqlKeyConstraint com.mapd.parser.extension.ddl.SqlDdlNodes.sharedDict ( SqlParserPos  pos,
SqlIdentifier  columnName,
SqlIdentifier  referencesColumn 
)
inlinestatic

Creates a SHARED DICTIONARY constraint.

Definition at line 118 of file SqlDdlNodes.java.

119  {
120  return SqlKeyConstraint.sharedDict(pos, columnName, referencesColumn);
121  }
static SqlKeyConstraint com.mapd.parser.extension.ddl.SqlDdlNodes.unique ( SqlParserPos  pos,
SqlIdentifier  name,
SqlNodeList  columnList 
)
inlinestatic

Creates a UNIQUE constraint.

Definition at line 96 of file SqlDdlNodes.java.

97  {
98  return new SqlKeyConstraint(pos, name, columnList);
99  }
string name
Definition: setup.in.py:72

The documentation for this class was generated from the following file: