OmniSciDB
a5dc49c757
|
Go to the source code of this file.
Macros | |
#define | THRIFT_ENCODING_CASE(encoding) |
#define | UNTHRIFT_ENCODING_CASE(encoding) |
Functions | |
TDatumType::type | type_to_thrift (const SQLTypeInfo &type_info) |
SQLTypes | thrift_to_type (const TDatumType::type &type) |
TEncodingType::type | encoding_to_thrift (const SQLTypeInfo &type_info) |
EncodingType | thrift_to_encoding (const TEncodingType::type tEncodingType) |
std::string | thrift_to_name (const TTypeInfo &ti) |
std::string | thrift_to_encoding_name (const TTypeInfo &ti) |
SQLTypeInfo | type_info_from_thrift (const TTypeInfo &thrift_ti, const bool strip_geo_encoding=false) |
#define THRIFT_ENCODING_CASE | ( | encoding | ) |
Definition at line 137 of file ThriftTypesConvert.h.
Referenced by encoding_to_thrift().
#define UNTHRIFT_ENCODING_CASE | ( | encoding | ) |
Definition at line 141 of file ThriftTypesConvert.h.
Referenced by thrift_to_encoding().
|
inline |
Definition at line 145 of file ThriftTypesConvert.h.
References CHECK, SQLTypeInfo::get_compression(), NONE, and THRIFT_ENCODING_CASE.
Referenced by DBHandler::detect_column_types(), DBHandler::populateThriftColumnType(), ThriftSerializers::target_meta_info_to_thrift(), and ThriftSerializers::type_info_to_thrift().
|
inline |
Definition at line 163 of file ThriftTypesConvert.h.
References CHECK, NONE, and UNTHRIFT_ENCODING_CASE.
Referenced by DBHandler::create_table(), thrift_to_encoding_name(), thrift_to_name(), and type_info_from_thrift().
|
inline |
Definition at line 204 of file ThriftTypesConvert.h.
References kARRAY, kNULLT, thrift_to_encoding(), thrift_to_type(), and run_benchmark_import::type.
Referenced by DBHandler::create_table().
|
inline |
Definition at line 179 of file ThriftTypesConvert.h.
References IS_GEO, kARRAY, kDECIMAL, kNULLT, kNUMERIC, kTIMESTAMP, thrift_to_encoding(), thrift_to_type(), and run_benchmark_import::type.
Referenced by DBHandler::create_table().
|
inline |
Definition at line 85 of file ThriftTypesConvert.h.
References kBIGINT, kBOOLEAN, kDATE, kDECIMAL, kDOUBLE, kFLOAT, kGEOGRAPHY, kGEOMETRY, kINT, kINTERVAL_DAY_TIME, kINTERVAL_YEAR_MONTH, kLINESTRING, kMULTILINESTRING, kMULTIPOINT, kMULTIPOLYGON, kPOINT, kPOLYGON, kSMALLINT, kTEXT, kTIME, kTIMESTAMP, and kTINYINT.
Referenced by thrift_to_encoding_name(), thrift_to_name(), and type_info_from_thrift().
|
inline |
Definition at line 217 of file ThriftTypesConvert.h.
References CHECK_LT, SQLTypeInfo::is_dict_encoded_string(), IS_GEO, SQLTypeInfo::is_subtype_dict_encoded_string(), kARRAY, kENCODING_NONE, kNULLT, kSQLTYPE_LAST, SQLTypeInfo::set_size(), SQLTypeInfo::setStringDictKey(), thrift_to_encoding(), and thrift_to_type().
Referenced by ThriftSerializers::target_info_from_thrift(), and ThriftSerializers::target_meta_infos_from_thrift().
|
inline |
Definition at line 26 of file ThriftTypesConvert.h.
References SQLTypeInfo::get_subtype(), SQLTypeInfo::get_type(), kARRAY, kBIGINT, kBOOLEAN, kCHAR, kCOLUMN, kCOLUMN_LIST, kDATE, kDECIMAL, kDOUBLE, kFLOAT, kGEOGRAPHY, kGEOMETRY, kINT, kINTERVAL_DAY_TIME, kINTERVAL_YEAR_MONTH, kLINESTRING, kMULTILINESTRING, kMULTIPOINT, kMULTIPOLYGON, kNUMERIC, kPOINT, kPOLYGON, kSMALLINT, kTEXT, kTIME, kTIMESTAMP, kTINYINT, kVARCHAR, and run_benchmark_import::type.
Referenced by DBHandler::detect_column_types(), DBHandler::populateThriftColumnType(), ThriftSerializers::target_meta_info_to_thrift(), and ThriftSerializers::type_info_to_thrift().