OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SqlExportQuery.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;
8 import org.apache.calcite.sql.SqlNode;
10 import org.apache.calcite.sql.SqlSpecialOperator;
11 import org.apache.calcite.sql.parser.SqlParserPos;
12 
13 public class SqlExportQuery extends SqlCustomDdl {
14  private static final SqlOperator OPERATOR =
15  new SqlSpecialOperator("EXPORT_QUERY", SqlKind.OTHER_DDL);
16 
17  @Expose
18  private String query;
19  @Expose
20  private String filePath;
21  @Expose
23 
24  public SqlExportQuery(final SqlParserPos pos,
25  final SqlNode queryNode,
26  final String filePath,
27  HeavyDBOptionsMap withOptions) {
28  super(OPERATOR, pos);
29  this.query = queryNode.toString();
30  this.filePath = (new HeavySqlSanitizedString(filePath)).toString();
31  this.options = withOptions;
32  }
33 }
SqlExportQuery(final SqlParserPos pos, final SqlNode queryNode, final String filePath, HeavyDBOptionsMap withOptions)