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

Classes

enum  FileType
 

Static Public Member Functions

static SqlCreateTable createTable (SqlParserPos pos, boolean replace, boolean ifNotExists, SqlIdentifier name, SqlNodeList columnList, OmniSciOptionsMap 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, OmniSciSqlDataTypeSpec dataType, SqlNode expression, 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 35 of file SqlDdlNodes.java.

Constructor & Destructor Documentation

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

Definition at line 36 of file SqlDdlNodes.java.

36 {}

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.py:35
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.py:35
static SqlNode com.mapd.parser.extension.ddl.SqlDdlNodes.column ( SqlParserPos  pos,
SqlIdentifier  name,
OmniSciSqlDataTypeSpec  dataType,
SqlNode  expression,
ColumnStrategy  strategy 
)
inlinestatic

Creates a column declaration.

Definition at line 61 of file SqlDdlNodes.java.

65  {
66  return new SqlColumnDeclaration(pos, name, dataType, expression, strategy);
67  }
string name
Definition: setup.py:35
static SqlCreateTable com.mapd.parser.extension.ddl.SqlDdlNodes.createTable ( SqlParserPos  pos,
boolean  replace,
boolean  ifNotExists,
SqlIdentifier  name,
SqlNodeList  columnList,
OmniSciOptionsMap  withOptions,
SqlNode  query 
)
inlinestatic

Creates a CREATE TABLE.

Definition at line 39 of file SqlDdlNodes.java.

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

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