OmniSciDB
a5dc49c757
|
Classes | |
class | NullSentinelSupplier |
Functions | |
template<typename LHT , typename RHT > | |
void | value_truncated (const LHT &lhs, const RHT &rhs) |
template<typename T > | |
bool | is_null (const T &v, const SQLTypeInfo &t) |
template<typename LHT , typename RHT > | |
bool | integer_setter (LHT &lhs, const RHT &rhs, const SQLTypeInfo &t) |
int | get_element_size (const SQLTypeInfo &t) |
bool | is_null_string_index (const int size, const int32_t sidx) |
int32_t | get_string_index (void *ptr, const int size) |
bool | set_string_index (void *ptr, const SQLTypeInfo &etype, int32_t sidx) |
template<typename T > | |
static void | put_scalar (void *ndptr, const SQLTypeInfo &etype, const int esize, const T oval) |
double | decimal_to_double (const SQLTypeInfo &otype, int64_t oval) |
template<typename T > | |
void | put_scalar (void *ndptr, const SQLTypeInfo &ntype, const T oval, const std::string col_name, const SQLTypeInfo *otype=nullptr) |
void | put_null (void *ndptr, const SQLTypeInfo &ntype, const std::string col_name) |
void | put_null_array (void *ndptr, const SQLTypeInfo &ntype, const std::string col_name) |
template<typename T > | |
bool | get_scalar (void *ndptr, const SQLTypeInfo &ntype, T &v) |
template<typename T > | |
void | set_minmax (T &min, T &max, T const val) |
template<typename T > | |
void | set_minmax (T &min, T &max, bool &null_flag, T const val, T null_sentinel) |
|
inline |
Definition at line 185 of file TypedDataAccessors.h.
References SQLTypeInfo::get_scale().
Referenced by put_scalar(), and Fragmenter_Namespace::InsertOrderFragmenter::updateColumn().
|
inline |
Definition at line 67 of file TypedDataAccessors.h.
References SQLTypeInfo::get_comp_param(), SQLTypeInfo::get_compression(), SQLTypeInfo::get_dimension(), SQLTypeInfo::get_scale(), SQLTypeInfo::get_size(), SQLTypeInfo::get_subtype(), SQLTypeInfo::is_array(), SQLTypeInfo::is_string_array(), and kNULLT.
|
inline |
Definition at line 355 of file TypedDataAccessors.h.
References SQLTypeInfo::get_size(), get_string_index(), SQLTypeInfo::get_type(), inline_fp_null_value< double >(), inline_fp_null_value< float >(), is_null_string_index(), kBIGINT, kBOOLEAN, kDATE, kDECIMAL, kDOUBLE, kFLOAT, kINT, kINTERVAL_DAY_TIME, kINTERVAL_YEAR_MONTH, kNUMERIC, kSMALLINT, kTEXT, kTIME, kTIMESTAMP, and kTINYINT.
|
inline |
Definition at line 97 of file TypedDataAccessors.h.
Referenced by get_scalar().
|
inline |
Definition at line 59 of file TypedDataAccessors.h.
References is_null(), and value_truncated().
Referenced by put_scalar(), and set_string_index().
|
inline |
Definition at line 40 of file TypedDataAccessors.h.
References SQLTypeInfo::get_logical_size().
|
inline |
Definition at line 84 of file TypedDataAccessors.h.
Referenced by get_scalar().
|
inline |
this f is currently only for putting fixed-size data in place this f is not yet for putting var-size or dict-encoded data
Definition at line 254 of file TypedDataAccessors.h.
References CHECK, SQLTypeInfo::get_notnull(), SQLTypeInfo::get_size(), SQLTypeInfo::get_type(), inline_fp_null_value< double >(), inline_fp_null_value< float >(), kBIGINT, kBOOLEAN, kDATE, kDECIMAL, kDOUBLE, kFLOAT, kINT, kINTERVAL_DAY_TIME, kINTERVAL_YEAR_MONTH, kNUMERIC, kSMALLINT, kTEXT, kTIME, kTIMESTAMP, and kTINYINT.
Referenced by RelAlgExecutor::executeSimpleInsert(), and Fragmenter_Namespace::InsertOrderFragmenter::updateColumn().
|
inline |
this f is currently only for putting fixed-size data in place this f is not yet for putting var-size or dict-encoded data
Definition at line 303 of file TypedDataAccessors.h.
References CHECK, SQLTypeInfo::get_notnull(), SQLTypeInfo::get_size(), SQLTypeInfo::get_type(), inline_fp_null_array_value< double >(), inline_fp_null_array_value< float >(), kBIGINT, kBOOLEAN, kDATE, kDECIMAL, kDOUBLE, kFLOAT, kINT, kINTERVAL_DAY_TIME, kINTERVAL_YEAR_MONTH, kNUMERIC, kSMALLINT, kTEXT, kTIME, kTIMESTAMP, and kTINYINT.
Referenced by RelAlgExecutor::executeSimpleInsert().
|
static |
Definition at line 127 of file TypedDataAccessors.h.
References SQLTypeInfo::get_type(), integer_setter(), SQLTypeInfo::is_decimal(), SQLTypeInfo::is_integer(), SQLTypeInfo::is_string(), SQLTypeInfo::is_time(), SQLTypeInfo::is_timeinterval(), SQLTypeInfo::is_varlen(), kBIGINT, kBOOLEAN, kDATE, kDECIMAL, kDOUBLE, kFLOAT, kINT, kINTERVAL_DAY_TIME, kINTERVAL_YEAR_MONTH, kNUMERIC, kSMALLINT, kTIME, kTIMESTAMP, kTINYINT, and set_string_index().
|
inline |
Definition at line 190 of file TypedDataAccessors.h.
References convert_decimal_value_to_scale(), decimal_to_double(), SQLTypeInfo::get_comp_param(), SQLTypeInfo::get_compression(), SQLTypeInfo::get_dimension(), anonymous_namespace{ResultSetReductionInterpreter.cpp}::get_element_size(), DateConverters::get_epoch_days_from_seconds(), SQLTypeInfo::get_notnull(), SQLTypeInfo::get_scale(), SQLTypeInfo::get_subtype(), SQLTypeInfo::is_array(), is_null(), kDATE, kDECIMAL, kNULLT, and kNUMERIC.
|
inline |
Definition at line 422 of file TypedDataAccessors.h.
Referenced by Fragmenter_Namespace::set_chunk_stats(), and Fragmenter_Namespace::anonymous_namespace{UpdelStorage.cpp}::update_metadata().
|
inline |
Definition at line 432 of file TypedDataAccessors.h.
|
inline |
Definition at line 110 of file TypedDataAccessors.h.
References anonymous_namespace{ResultSetReductionInterpreter.cpp}::get_element_size(), and integer_setter().
Referenced by put_scalar().
|
inline |
Definition at line 30 of file TypedDataAccessors.h.
Referenced by integer_setter().