OmniSciDB
bf83d84833
|
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, int8_t &null_flag, T const val, T null_sentinel) |
template<typename TYPE_INFO , typename T , typename SENTINEL_SUPPLIER = NullSentinelSupplier> | |
void | tabulate_metadata (TYPE_INFO const &ti, T &min, T &max, int8_t &null_flag, T const val, SENTINEL_SUPPLIER s=SENTINEL_SUPPLIER()) |
|
inline |
Definition at line 184 of file TypedDataAccessors.h.
References SQLTypeInfo::get_scale().
Referenced by put_scalar(), and Fragmenter_Namespace::InsertOrderFragmenter::updateColumn().
|
inline |
Definition at line 66 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 352 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 96 of file TypedDataAccessors.h.
Referenced by get_scalar().
|
inline |
Definition at line 58 of file TypedDataAccessors.h.
References is_null(), and value_truncated().
Referenced by put_scalar(), and set_string_index().
|
inline |
Definition at line 39 of file TypedDataAccessors.h.
References SQLTypeInfo::get_logical_size().
|
inline |
Definition at line 83 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 253 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, 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 301 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, kTIME, kTIMESTAMP, and kTINYINT.
Referenced by RelAlgExecutor::executeSimpleInsert().
|
static |
Definition at line 126 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 189 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 419 of file TypedDataAccessors.h.
Referenced by Fragmenter_Namespace::set_chunk_stats(), and tabulate_metadata().
|
inline |
Definition at line 429 of file TypedDataAccessors.h.
|
inline |
Definition at line 109 of file TypedDataAccessors.h.
References anonymous_namespace{ResultSetReductionInterpreter.cpp}::get_element_size(), and integer_setter().
Referenced by put_scalar().
|
inline |
Definition at line 445 of file TypedDataAccessors.h.
References set_minmax().
Referenced by Fragmenter_Namespace::InsertOrderFragmenter::updateColumn().
|
inline |
Definition at line 29 of file TypedDataAccessors.h.
Referenced by integer_setter().