OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SqlDropUser.java
Go to the documentation of this file.
1 package com.mapd.parser.extension.ddl;
2 
3 import com.google.gson.annotations.Expose;
4 import com.mapd.parser.extension.ddl.heavysql.*;
5 
6 import org.apache.calcite.sql.*;
7 import org.apache.calcite.sql.parser.SqlParserPos;
8 
9 import java.util.List;
10 
14 public class SqlDropUser extends SqlDrop implements JsonSerializableDdl {
15  private static final SqlOperator OPERATOR =
16  new SqlSpecialOperator("DROP_USER", SqlKind.OTHER_DDL);
17  @Expose
18  private boolean ifExists;
19  @Expose
20  private String command;
21  @Expose
22  private String name;
23 
24  public SqlDropUser(final SqlParserPos pos, final boolean ifExists, final String name) {
25  super(OPERATOR, pos, ifExists);
26  this.ifExists = ifExists;
27  this.command = OPERATOR.getName();
28  this.name = name;
29  }
30 
31  @Override
32  public List<SqlNode> getOperandList() {
33  return null;
34  }
35 
36  @Override
37  public String toString() {
38  return toJsonString();
39  }
40 }
SqlDropUser(final SqlParserPos pos, final boolean ifExists, final String name)