OmniSciDB  c1a53651b2
 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 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 70 of file SqlDdlNodes.java.

74  {
75  return new SqlAttributeDefinition(pos, name, dataType, expression, collation);
76  }
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 79 of file SqlDdlNodes.java.

79  {
80  return new SqlCheckConstraint(pos, name, expression);
81  }
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 61 of file SqlDdlNodes.java.

65  {
66  return new SqlColumnDeclaration(pos, name, dataType, defaultValue, strategy);
67  }
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 90 of file SqlDdlNodes.java.

91  {
92  return new SqlKeyConstraint(pos, name, columnList) {
93  @Override
94  public SqlOperator getOperator() {
95  return PRIMARY;
96  }
97  };
98  }
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 101 of file SqlDdlNodes.java.

References setup.name.

101  {
102  return SqlKeyConstraint.shard(pos, name);
103  }
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 106 of file SqlDdlNodes.java.

107  {
108  return SqlKeyConstraint.sharedDict(pos, columnName, referencesColumn);
109  }
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.

85  {
86  return new SqlKeyConstraint(pos, name, columnList);
87  }
string name
Definition: setup.in.py:72

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