OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mapd.parser.extension.ddl.heavydb.HeavyDBSqlDataTypeSpec Class Reference
+ Inheritance diagram for com.mapd.parser.extension.ddl.heavydb.HeavyDBSqlDataTypeSpec:
+ Collaboration diagram for com.mapd.parser.extension.ddl.heavydb.HeavyDBSqlDataTypeSpec:

Public Member Functions

 HeavyDBSqlDataTypeSpec (final SqlTypeNameSpec typeNameSpec, SqlParserPos pos)
 
 HeavyDBSqlDataTypeSpec (final SqlDataTypeSpec dataTypeSpec, Pair< HeavyDBEncoding, Integer > encoding)
 
HeavyDBSqlDataTypeSpec withEncoding (Pair< HeavyDBEncoding, Integer > encoding)
 
HeavyDBSqlDataTypeSpec withNullable (Boolean nullable)
 
Integer getEncodingSize ()
 
String getEncodingString ()
 

Private Attributes

final Pair< HeavyDBEncoding,
Integer > 
encoding
 

Detailed Description

Definition at line 8 of file HeavyDBSqlDataTypeSpec.java.

Constructor & Destructor Documentation

com.mapd.parser.extension.ddl.heavydb.HeavyDBSqlDataTypeSpec.HeavyDBSqlDataTypeSpec ( final SqlTypeNameSpec  typeNameSpec,
SqlParserPos  pos 
)
inline

Definition at line 11 of file HeavyDBSqlDataTypeSpec.java.

Referenced by com.mapd.parser.extension.ddl.heavydb.HeavyDBSqlDataTypeSpec.withEncoding(), and com.mapd.parser.extension.ddl.heavydb.HeavyDBSqlDataTypeSpec.withNullable().

11  {
12  super(typeNameSpec, null, null, pos);
13  this.encoding = null;
14  }

+ Here is the caller graph for this function:

com.mapd.parser.extension.ddl.heavydb.HeavyDBSqlDataTypeSpec.HeavyDBSqlDataTypeSpec ( final SqlDataTypeSpec  dataTypeSpec,
Pair< HeavyDBEncoding, Integer >  encoding 
)
inline

Definition at line 16 of file HeavyDBSqlDataTypeSpec.java.

References com.mapd.parser.extension.ddl.heavydb.HeavyDBSqlDataTypeSpec.encoding.

17  {
18  super(dataTypeSpec.getTypeNameSpec(),
19  dataTypeSpec.getTimeZone(),
20  dataTypeSpec.getNullable(),
21  dataTypeSpec.getParserPosition());
22  this.encoding = encoding;
23  }

Member Function Documentation

Integer com.mapd.parser.extension.ddl.heavydb.HeavyDBSqlDataTypeSpec.getEncodingSize ( )
inline

Definition at line 36 of file HeavyDBSqlDataTypeSpec.java.

References com.mapd.parser.extension.ddl.heavydb.HeavyDBSqlDataTypeSpec.encoding, and Integer.

36  {
37  if (encoding == null) {
38  return null;
39  } else {
40  return encoding.right;
41  }
42  }
String com.mapd.parser.extension.ddl.heavydb.HeavyDBSqlDataTypeSpec.getEncodingString ( )
inline

Definition at line 44 of file HeavyDBSqlDataTypeSpec.java.

References com.mapd.parser.extension.ddl.heavydb.HeavyDBSqlDataTypeSpec.encoding.

44  {
45  if (encoding == null) {
46  return null;
47  } else {
48  return encoding.left.name();
49  }
50  }
HeavyDBSqlDataTypeSpec com.mapd.parser.extension.ddl.heavydb.HeavyDBSqlDataTypeSpec.withEncoding ( Pair< HeavyDBEncoding, Integer >  encoding)
inline

Definition at line 25 of file HeavyDBSqlDataTypeSpec.java.

References com.mapd.parser.extension.ddl.heavydb.HeavyDBSqlDataTypeSpec.HeavyDBSqlDataTypeSpec().

25  {
26  SqlDataTypeSpec dataTypeSpec = super.withNullable(getNullable());
27  return new HeavyDBSqlDataTypeSpec(dataTypeSpec, encoding);
28  }
HeavyDBSqlDataTypeSpec(final SqlTypeNameSpec typeNameSpec, SqlParserPos pos)

+ Here is the call graph for this function:

HeavyDBSqlDataTypeSpec com.mapd.parser.extension.ddl.heavydb.HeavyDBSqlDataTypeSpec.withNullable ( Boolean  nullable)
inline

Definition at line 31 of file HeavyDBSqlDataTypeSpec.java.

References com.mapd.parser.extension.ddl.heavydb.HeavyDBSqlDataTypeSpec.encoding, and com.mapd.parser.extension.ddl.heavydb.HeavyDBSqlDataTypeSpec.HeavyDBSqlDataTypeSpec().

31  {
32  SqlDataTypeSpec dataTypeSpec = super.withNullable(nullable);
33  return new HeavyDBSqlDataTypeSpec(dataTypeSpec, this.encoding);
34  }
HeavyDBSqlDataTypeSpec(final SqlTypeNameSpec typeNameSpec, SqlParserPos pos)

+ Here is the call graph for this function:

Member Data Documentation


The documentation for this class was generated from the following file: