OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SqlCreateUser.java
Go to the documentation of this file.
1 package com.mapd.parser.extension.ddl;
2 
3 import com.google.gson.annotations.Expose;
5 
6 import org.apache.calcite.sql.SqlCreate;
7 import org.apache.calcite.sql.SqlKind;
8 import org.apache.calcite.sql.SqlNode;
10 import org.apache.calcite.sql.SqlSpecialOperator;
11 import org.apache.calcite.sql.parser.SqlParserPos;
12 
13 import java.util.List;
14 import java.util.Map;
15 
19 public class SqlCreateUser extends SqlCreate implements JsonSerializableDdl {
20  private static final SqlOperator OPERATOR =
21  new SqlSpecialOperator("CREATE_USER", SqlKind.OTHER_DDL);
22 
23  @Expose
24  private String command;
25  @Expose
26  private String name;
27  @Expose
29 
30  public SqlCreateUser(
31  final SqlParserPos pos, final String name, HeavyDBOptionsMap optionsMap) {
32  super(OPERATOR, pos, false, true);
33  this.command = OPERATOR.getName();
34  this.name = name;
35  this.options = optionsMap;
36  }
37 
38  @Override
39  public List<SqlNode> getOperandList() {
40  return null;
41  }
42 
43  @Override
44  public String toString() {
45  return toJsonString();
46  }
47 }
SqlCreateUser(final SqlParserPos pos, final String name, HeavyDBOptionsMap optionsMap)