OmniSciDB
a5dc49c757
|
#include <DdlUtils.h>
Public Member Functions | |
SqlType (SQLTypes type, int param1, int param2, bool is_array, int array_size) | |
virtual SQLTypes | get_type () const |
virtual int | get_param1 () const |
virtual void | set_param1 (int param) |
virtual int | get_param2 () const |
virtual bool | get_is_array () const |
virtual void | set_is_array (bool a) |
virtual int | get_array_size () const |
virtual void | set_array_size (int s) |
virtual std::string | to_string () const |
virtual void | check_type () |
Protected Attributes | |
SQLTypes | type |
int | param1 |
int | param2 |
bool | is_array |
int | array_size |
Definition at line 23 of file DdlUtils.h.
ddl_utils::SqlType::SqlType | ( | SQLTypes | type, |
int | param1, | ||
int | param2, | ||
bool | is_array, | ||
int | array_size | ||
) |
Encapsulates column definition type information.
type | - Column type. |
param1 | - For column types followed by parenthesis with more information, this represents the first parameter in the parenthesis. For example, in DECIMAL(5, 2), this would represent the precision value of 5. In GEOMETRY(POINT, 4326), this would represent the integer value of the kPOINT enum. |
param2 | - For column types followed by parenthesis with more information, this represents the second parameter in the parenthesis. For example, in DECIMAL(5, 2), this would represent the scale value of 2. In GEOMETRY(POINT, 4326), this would represent the coordinate type integer value of 4326. |
is_array | - Flag that indicates whether or not column type is an array. |
array_size | - For array column types, this is the specified size of the array. |
Definition at line 73 of file DdlUtils.cpp.
|
virtual |
Definition at line 188 of file DdlUtils.cpp.
References kCHAR, kDECIMAL, kLINESTRING, sql_constants::kMaxNumericPrecision, kMULTILINESTRING, kMULTIPOINT, kMULTIPOLYGON, kNUMERIC, kPOINT, kPOLYGON, kTIME, kTIMESTAMP, kVARCHAR, param1, param2, to_string(), and type.
Referenced by ddl_utils::validate_and_set_type().
|
virtual |
Definition at line 104 of file DdlUtils.cpp.
References array_size.
Referenced by ddl_utils::validate_and_set_array_size().
|
virtual |
Definition at line 96 of file DdlUtils.cpp.
References is_array.
Referenced by Parser::set_column_descriptor(), ddl_utils::validate_and_set_array_size(), and ddl_utils::validate_and_set_type().
|
virtual |
Definition at line 84 of file DdlUtils.cpp.
References param1.
Referenced by ddl_utils::validate_and_set_type().
|
virtual |
Definition at line 92 of file DdlUtils.cpp.
References param2.
Referenced by ddl_utils::validate_and_set_type().
|
virtual |
Definition at line 80 of file DdlUtils.cpp.
References type.
Referenced by ddl_utils::validate_and_set_type().
|
virtual |
|
virtual |
Definition at line 100 of file DdlUtils.cpp.
References anonymous_namespace{Utm.h}::a, and is_array.
|
virtual |
Definition at line 88 of file DdlUtils.cpp.
References param1.
|
virtual |
Definition at line 112 of file DdlUtils.cpp.
References array_size, is_array, kBIGINT, kBOOLEAN, kCHAR, kDATE, kDECIMAL, kDOUBLE, kFLOAT, kINT, kNUMERIC, kSMALLINT, kTEXT, kTIME, kTIMESTAMP, kTINYINT, kVARCHAR, param1, param2, and type.
Referenced by ddl_utils::validate_and_set_fixed_encoding().
|
protected |
Definition at line 58 of file DdlUtils.h.
Referenced by get_array_size(), set_array_size(), and to_string().
|
protected |
Definition at line 57 of file DdlUtils.h.
Referenced by get_is_array(), TableFunctionsFactory_node.ComposedNode::is_array_text_encoding_dict(), set_is_array(), and to_string().
|
protected |
Definition at line 55 of file DdlUtils.h.
Referenced by check_type(), get_param1(), set_param1(), and to_string().
|
protected |
Definition at line 56 of file DdlUtils.h.
Referenced by check_type(), get_param2(), and to_string().
|
protected |
Definition at line 54 of file DdlUtils.h.
Referenced by check_type(), get_type(), and to_string().