OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SqlReassignOwned.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 
10 import java.util.List;
11 
12 public class SqlReassignOwned extends SqlCustomDdl {
13  private static final SqlOperator OPERATOR =
14  new SqlSpecialOperator("REASSIGN_OWNED", SqlKind.OTHER_DDL);
15 
16  @Expose
17  private List<String> oldOwners;
18 
19  @Expose
20  private String newOwner;
21 
22  @Expose
23  private boolean all;
24 
25  public SqlReassignOwned(final SqlParserPos pos,
26  final List<String> oldOwners,
27  final String newOwner,
28  final boolean all) {
29  super(OPERATOR, pos);
30  this.oldOwners = oldOwners;
31  this.newOwner = newOwner;
32  this.all = all;
33  }
34 }
SqlReassignOwned(final SqlParserPos pos, final List< String > oldOwners, final String newOwner, final boolean all)