OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SqlKillQuery.java
Go to the documentation of this file.
1 package com.mapd.parser.extension.ddl;
2 import static java.util.Objects.requireNonNull;
3 
4 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 
12 public class SqlKillQuery extends SqlCustomDdl {
13  private static final SqlOperator OPERATOR =
14  new SqlSpecialOperator("KILL_QUERY", SqlKind.OTHER_DDL);
15 
16  @Expose
17  private String querySession;
18 
19  public SqlKillQuery(final SqlParserPos pos, final String querySession) {
20  super(OPERATOR, pos);
21  requireNonNull(querySession);
22  HeavySqlSanitizedString sanitizedSession = new HeavySqlSanitizedString(querySession);
23  this.querySession = sanitizedSession.toString();
24  }
25 }
SqlKillQuery(final SqlParserPos pos, final String querySession)