OmniSciDB  6686921089
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SqlValidateSystem.java
Go to the documentation of this file.
1 package com.mapd.parser.extension.ddl;
2 
3 import com.google.gson.annotations.Expose;
5 
6 import org.apache.calcite.sql.SqlCreate;
7 import org.apache.calcite.sql.SqlKind;
8 import org.apache.calcite.sql.SqlNode;
9 import org.apache.calcite.sql.SqlOperator;
10 import org.apache.calcite.sql.SqlSpecialOperator;
11 import org.apache.calcite.sql.parser.SqlParserPos;
12 
13 import java.util.List;
14 
18 public class SqlValidateSystem extends SqlCreate implements JsonSerializableDdl {
19  private static final SqlOperator OPERATOR =
20  new SqlSpecialOperator("VALIDATE_SYSTEM", SqlKind.OTHER_DDL);
21 
22  @Expose
23  private String command;
24  @Expose
25  private String type;
26  @Expose
28 
30  final SqlParserPos pos, final String type, OmniSciOptionsMap withOptions) {
31  super(OPERATOR, pos, false, false);
32  this.command = OPERATOR.getName();
33  this.type = type;
34  this.options = withOptions;
35  }
36 
37  @Override
38  public List<SqlNode> getOperandList() {
39  return null;
40  }
41 
42  @Override
43  public String toString() {
44  return toJsonString();
45  }
46 }
SqlValidateSystem(final SqlParserPos pos, final String type, OmniSciOptionsMap withOptions)