OmniSciDB  2e3a973ef4
SqlRefreshForeignTables.java
Go to the documentation of this file.
1 package com.mapd.parser.extension.ddl;
2 import static java.util.Objects.requireNonNull;
3 
4 import com.google.gson.annotations.Expose;
6 
7 import org.apache.calcite.sql.*;
8 import org.apache.calcite.sql.parser.SqlParserPos;
9 
10 import java.util.List;
11 
12 public class SqlRefreshForeignTables extends SqlDdl implements JsonSerializableDdl {
13  private static final SqlOperator OPERATOR =
14  new SqlSpecialOperator("REFRESH_FOREIGN_TABLES", SqlKind.OTHER_DDL);
15 
16  @Expose
17  private String command;
18  @Expose
19  private List<String> tableNames;
20  @Expose
22 
23  public SqlRefreshForeignTables(final SqlParserPos pos,
24  final List<String> tableNames,
25  final OmniSqlOptionsMap optionsMap) {
26  super(OPERATOR, pos);
27  this.command = OPERATOR.getName();
28  this.tableNames = tableNames;
29  this.options = optionsMap;
30  }
31 
32  @Override
33  public List<SqlNode> getOperandList() {
34  return null;
35  }
36 
37  @Override
38  public String toString() {
39  return toJsonString();
40  }
41 } // SqlRefreshForeignTables
SqlRefreshForeignTables(final SqlParserPos pos, final List< String > tableNames, final OmniSqlOptionsMap optionsMap)