OmniSciDB  b28c0d5765
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SqlCopyTable.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 SqlCopyTable extends SqlCustomDdl {
16  private static final SqlOperator OPERATOR =
17  new SqlSpecialOperator("COPY_TABLE", SqlKind.OTHER_DDL);
18 
19  @Expose
20  private String table;
21  @Expose
22  private String filePath;
23  @Expose
25 
26  public SqlCopyTable(final SqlParserPos pos,
27  final String table,
28  final String filePath,
29  HeavyDBOptionsMap withOptions) {
30  super(OPERATOR, pos);
31  this.table = table;
32  this.filePath = (new HeavySqlSanitizedString(filePath)).toString();
33  this.options = withOptions;
34  }
35 }
SqlCopyTable(final SqlParserPos pos, final String table, final String filePath, HeavyDBOptionsMap withOptions)