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

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

84  {
85  return new SqlAttributeDefinition(pos, name, dataType, expression, collation);
86  }
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 89 of file SqlDdlNodes.java.

89  {
90  return new SqlCheckConstraint(pos, name, expression);
91  }
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 71 of file SqlDdlNodes.java.

75  {
76  return new SqlColumnDeclaration(pos, name, dataType, defaultValue, strategy);
77  }
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 59 of file SqlDdlNodes.java.

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

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

54  {
55  return new SqlCreateView(pos, ifNotExists, name, columnList, query);
56  }
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 100 of file SqlDdlNodes.java.

101  {
102  return new SqlKeyConstraint(pos, name, columnList) {
103  @Override
104  public SqlOperator getOperator() {
105  return PRIMARY;
106  }
107  };
108  }
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 111 of file SqlDdlNodes.java.

References setup.name.

111  {
112  return SqlKeyConstraint.shard(pos, name);
113  }
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 116 of file SqlDdlNodes.java.

117  {
118  return SqlKeyConstraint.sharedDict(pos, columnName, referencesColumn);
119  }
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.

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

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