OmniSciDB  a987f07e93
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SqlRestoreTable.java
Go to the documentation of this file.
1 package com.mapd.parser.extension.ddl;
2 
3 import com.google.gson.annotations.Expose;
6 
7 import org.apache.calcite.sql.SqlKind;
9 import org.apache.calcite.sql.SqlSpecialOperator;
10 import org.apache.calcite.sql.parser.SqlParserPos;
11 
15 public class SqlRestoreTable extends SqlCustomDdl {
16  private static final SqlOperator OPERATOR =
17  new SqlSpecialOperator("RESTORE_TABLE", SqlKind.OTHER_DDL);
18 
19  @Expose
20  private String tableName;
21  @Expose
22  private String filePath;
23  @Expose
25 
26  public SqlRestoreTable(final SqlParserPos pos,
27  final String tableName,
28  final String filePath,
29  HeavyDBOptionsMap withOptions) {
30  super(OPERATOR, pos);
31  this.tableName = tableName;
32  this.filePath = (new HeavySqlSanitizedString(filePath)).toString();
33  this.options = withOptions;
34  }
35 }
SqlRestoreTable(final SqlParserPos pos, final String tableName, final String filePath, HeavyDBOptionsMap withOptions)