OmniSciDB  340b00dbf6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
com.mapd.parser.extension.ddl.omnisci.OmniSciSqlDataTypeSpec Class Reference
+ Inheritance diagram for com.mapd.parser.extension.ddl.omnisci.OmniSciSqlDataTypeSpec:
+ Collaboration diagram for com.mapd.parser.extension.ddl.omnisci.OmniSciSqlDataTypeSpec:

Public Member Functions

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

Private Attributes

final Pair< OmniSciEncoding,
Integer > 
encoding
 

Detailed Description

Definition at line 8 of file OmniSciSqlDataTypeSpec.java.

Constructor & Destructor Documentation

com.mapd.parser.extension.ddl.omnisci.OmniSciSqlDataTypeSpec.OmniSciSqlDataTypeSpec ( final SqlTypeNameSpec  typeNameSpec,
SqlParserPos  pos 
)
inline

Definition at line 11 of file OmniSciSqlDataTypeSpec.java.

Referenced by com.mapd.parser.extension.ddl.omnisci.OmniSciSqlDataTypeSpec.withEncoding(), and com.mapd.parser.extension.ddl.omnisci.OmniSciSqlDataTypeSpec.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.omnisci.OmniSciSqlDataTypeSpec.OmniSciSqlDataTypeSpec ( final SqlDataTypeSpec  dataTypeSpec,
Pair< OmniSciEncoding, Integer >  encoding 
)
inline

Definition at line 16 of file OmniSciSqlDataTypeSpec.java.

References com.mapd.parser.extension.ddl.omnisci.OmniSciSqlDataTypeSpec.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.omnisci.OmniSciSqlDataTypeSpec.getEncodingSize ( )
inline

Definition at line 36 of file OmniSciSqlDataTypeSpec.java.

References com.mapd.parser.extension.ddl.omnisci.OmniSciSqlDataTypeSpec.encoding.

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

Definition at line 44 of file OmniSciSqlDataTypeSpec.java.

References com.mapd.parser.extension.ddl.omnisci.OmniSciSqlDataTypeSpec.encoding.

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

Definition at line 25 of file OmniSciSqlDataTypeSpec.java.

References com.mapd.parser.extension.ddl.omnisci.OmniSciSqlDataTypeSpec.OmniSciSqlDataTypeSpec().

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

+ Here is the call graph for this function:

OmniSciSqlDataTypeSpec com.mapd.parser.extension.ddl.omnisci.OmniSciSqlDataTypeSpec.withNullable ( Boolean  nullable)
inline

Definition at line 31 of file OmniSciSqlDataTypeSpec.java.

References com.mapd.parser.extension.ddl.omnisci.OmniSciSqlDataTypeSpec.encoding, and com.mapd.parser.extension.ddl.omnisci.OmniSciSqlDataTypeSpec.OmniSciSqlDataTypeSpec().

31  {
32  SqlDataTypeSpec dataTypeSpec = super.withNullable(nullable);
33  return new OmniSciSqlDataTypeSpec(dataTypeSpec, this.encoding);
34  }
OmniSciSqlDataTypeSpec(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: