1 package com.mapd.parser.extension.ddl.heavydb;
3 import org.apache.calcite.sql.SqlDataTypeSpec;
4 import org.apache.calcite.sql.SqlTypeNameSpec;
5 import org.apache.calcite.sql.parser.SqlParserPos;
6 import org.apache.calcite.util.Pair;
9 private final Pair<HeavyDBEncoding, Integer>
encoding;
12 super(typeNameSpec, null, null, pos);
17 final SqlDataTypeSpec dataTypeSpec, Pair<HeavyDBEncoding, Integer>
encoding) {
18 super(dataTypeSpec.getTypeNameSpec(),
19 dataTypeSpec.getTimeZone(),
20 dataTypeSpec.getNullable(),
21 dataTypeSpec.getParserPosition());
26 SqlDataTypeSpec dataTypeSpec = super.withNullable(getNullable());
32 SqlDataTypeSpec dataTypeSpec = super.withNullable(nullable);
40 return encoding.right;
48 return encoding.left.name();
HeavyDBSqlDataTypeSpec(final SqlDataTypeSpec dataTypeSpec, Pair< HeavyDBEncoding, Integer > encoding)
HeavyDBSqlDataTypeSpec withNullable(Boolean nullable)
String getEncodingString()
final Pair< HeavyDBEncoding, Integer > encoding
HeavyDBSqlDataTypeSpec(final SqlTypeNameSpec typeNameSpec, SqlParserPos pos)
HeavyDBSqlDataTypeSpec withEncoding(Pair< HeavyDBEncoding, Integer > encoding)
Integer getEncodingSize()