OmniSciDB  6686921089
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SqlOptimizeTable.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.SqlDdl;
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 SqlOptimizeTable extends SqlDdl implements JsonSerializableDdl {
19  private static final SqlOperator OPERATOR =
20  new SqlSpecialOperator("OPTIMIZE_TABLE", SqlKind.OTHER_DDL);
21 
22  @Expose
23  private String command;
24  @Expose
25  private String tableName;
26  @Expose
28 
30  final SqlParserPos pos, final String tableName, OmniSciOptionsMap withOptions) {
31  super(OPERATOR, pos);
32  this.command = OPERATOR.getName();
33  this.tableName = tableName;
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 }
SqlOptimizeTable(final SqlParserPos pos, final String tableName, OmniSciOptionsMap withOptions)