OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SqlDropForeignTable.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.SqlDrop;
6 import org.apache.calcite.sql.SqlKind;
7 import org.apache.calcite.sql.SqlNode;
9 import org.apache.calcite.sql.SqlSpecialOperator;
10 import org.apache.calcite.sql.parser.SqlParserPos;
11 
12 import java.util.List;
13 
14 public class SqlDropForeignTable extends SqlDrop implements JsonSerializableDdl {
15  private static final SqlOperator OPERATOR =
16  new SqlSpecialOperator("DROP_FOREIGN_TABLE", SqlKind.OTHER_DDL);
17 
18  @Expose
19  private String command;
20  @Expose
21  private boolean ifExists;
22  @Expose
23  private String tableName;
24 
26  final SqlParserPos pos, final boolean ifExists, final String tableName) {
27  super(OPERATOR, pos, ifExists);
28  this.command = OPERATOR.getName();
29  this.ifExists = ifExists;
30  this.tableName = tableName;
31  }
32 
33  @Override
34  public List<SqlNode> getOperandList() {
35  return null;
36  }
37 
38  @Override
39  public String toString() {
40  return toJsonString();
41  }
42 } // SqlDropForeignTable
SqlDropForeignTable(final SqlParserPos pos, final boolean ifExists, final String tableName)