OmniSciDB  95562058bd
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SqlShowCommand.java
Go to the documentation of this file.
1 package com.mapd.parser.extension.ddl;
2 
3 import com.google.gson.annotations.Expose;
4 
5 import org.apache.calcite.sql.SqlDdl;
6 import org.apache.calcite.sql.SqlNode;
7 import org.apache.calcite.sql.SqlOperator;
8 import org.apache.calcite.sql.parser.SqlParserPos;
9 
10 import java.util.List;
11 
12 public abstract class SqlShowCommand extends SqlDdl implements JsonSerializableDdl {
13  @Expose
14  private String command;
15 
16  public SqlShowCommand(final SqlOperator operator, final SqlParserPos pos) {
17  super(operator, pos);
18  this.command = operator.getName();
19  }
20 
21  @Override
22  public List<SqlNode> getOperandList() {
23  return null;
24  }
25 
26  @Override
27  public String toString() {
28  return toJsonString();
29  }
30 }
SqlShowCommand(final SqlOperator operator, final SqlParserPos pos)