OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SqlEvaluateModel.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.SqlKind;
7 import org.apache.calcite.sql.SqlNode;
9 import org.apache.calcite.sql.SqlSpecialOperator;
10 import org.apache.calcite.sql.parser.SqlParserPos;
11 
15 public class SqlEvaluateModel extends SqlCustomDdl {
16  private static final SqlOperator OPERATOR =
17  new SqlSpecialOperator("EVALUATE_MODEL", SqlKind.OTHER_DDL);
18 
19  @Expose
20  private String modelName;
21  @Expose
22  private String query;
23  @Expose
25 
26  public SqlEvaluateModel(final SqlParserPos pos, final String modelName, SqlNode query) {
27  super(OPERATOR, pos);
28  this.modelName = modelName;
29  if (query != null) {
30  this.query = query.toString();
31  }
32  }
33 }
SqlEvaluateModel(final SqlParserPos pos, final String modelName, SqlNode query)