OmniSciDB  2e3a973ef4
OmniSqlColumn.java
Go to the documentation of this file.
1 package com.mapd.parser.extension.ddl.omnisql;
2 
3 import static java.util.Objects.requireNonNull;
4 
5 import com.google.gson.annotations.Expose;
8 
9 import org.apache.calcite.sql.SqlDataTypeSpec;
10 import org.apache.calcite.sql.SqlIdentifier;
11 
12 public class OmniSqlColumn extends OmniSqlJson {
13  @Expose
14  private String name;
15  @Expose
17  @Expose
19 
20  public OmniSqlColumn(final SqlIdentifier name,
21  final OmniSqlDataType type,
22  final OmniSqlEncoding encoding,
23  final OmniSqlOptionsMap options) {
24  requireNonNull(name);
25  this.name = name.toString();
26  this.dataType = type;
27  this.options = options;
28  }
29 } // OmniSqlColumn.
OmniSqlColumn(final SqlIdentifier name, final OmniSqlDataType type, final OmniSqlEncoding encoding, final OmniSqlOptionsMap options)