OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SqlRenameUser.java
Go to the documentation of this file.
1 package com.mapd.parser.extension.ddl;
2 
3 import com.google.gson.annotations.Expose;
4 
5 import org.apache.calcite.sql.SqlKind;
7 import org.apache.calcite.sql.SqlSpecialOperator;
8 import org.apache.calcite.sql.parser.SqlParserPos;
9 
13 public class SqlRenameUser extends SqlCustomDdl {
14  private static final SqlOperator OPERATOR =
15  new SqlSpecialOperator("RENAME_USER", SqlKind.OTHER_DDL);
16 
17  @Expose
18  private String name;
19  @Expose
20  private String newName;
21 
22  public SqlRenameUser(final SqlParserPos pos, String name, String newName) {
23  super(OPERATOR, pos);
24  this.name = name;
25  this.newName = newName;
26  }
27 }
SqlRenameUser(final SqlParserPos pos, String name, String newName)