OmniSciDB
a5dc49c757
|
Typedefs | |
template<typename TYPE > | |
using | null_type_t = typename null_type< TYPE >::type |
Functions | |
SQLTypes | get_dict_index_type (const SQLTypeInfo &ti) |
SQLTypes | get_physical_type (const SQLTypeInfo &ti) |
template<typename TYPE , typename VALUE_ARRAY_TYPE > | |
void | create_or_append_value (const ScalarTargetValue &val_cty, std::shared_ptr< ValueArray > &values, const size_t max_size) |
template<typename TYPE , typename VALUE_ARRAY_TYPE > | |
void | create_or_append_value (const ArrayTargetValue &val_ctys, std::shared_ptr< ValueArray > &values, const size_t max_size) |
void | create_or_append_validity (const ArrayTargetValue &value, const SQLTypeInfo &col_type, std::shared_ptr< std::vector< bool >> &null_bitmap, const size_t max_size) |
template<typename TYPE > | |
void | create_or_append_validity (const ScalarTargetValue &value, const SQLTypeInfo &col_type, std::shared_ptr< std::vector< bool >> &null_bitmap, const size_t max_size) |
template<typename C_TYPE , typename ARROW_TYPE = typename arrow::CTypeTraits<C_TYPE>::ArrowType> | |
void | convert_column (ResultSetPtr result, size_t col, size_t entry_count, std::shared_ptr< arrow::Array > &out) |
std::pair< key_t, void * > | get_shm (size_t shmsz) |
std::pair< key_t, std::shared_ptr< arrow::Buffer > > | get_shm_buffer (size_t size) |
void | remap_string_values (const ArrowResultSetConverter::ColumnBuilder &column_builder, const std::vector< uint8_t > &bitmap, std::vector< int64_t > &vec1d) |
std::shared_ptr< arrow::DataType > | get_arrow_type (const SQLTypeInfo &sql_type, const ExecutorDeviceType device_type) |
template<typename BUILDER_TYPE , typename VALUE_ARRAY_TYPE > | |
void | appendToColumnBuilder (ArrowResultSetConverter::ColumnBuilder &column_builder, const ValueArray &values, const std::shared_ptr< std::vector< bool >> &is_valid) |
template<> | |
void | appendToColumnBuilder< arrow::Decimal128Builder, int64_t > (ArrowResultSetConverter::ColumnBuilder &column_builder, const ValueArray &values, const std::shared_ptr< std::vector< bool >> &is_valid) |
template<> | |
void | appendToColumnBuilder< arrow::StringBuilder, std::string > (ArrowResultSetConverter::ColumnBuilder &column_builder, const ValueArray &values, const std::shared_ptr< std::vector< bool >> &is_valid) |
template<> | |
void | appendToColumnBuilder< arrow::StringDictionary32Builder, int32_t > (ArrowResultSetConverter::ColumnBuilder &column_builder, const ValueArray &values, const std::shared_ptr< std::vector< bool >> &is_valid) |
template<typename BUILDER_TYPE , typename VALUE_TYPE > | |
void | appendToListColumnBuilder (ArrowResultSetConverter::ColumnBuilder &column_builder, const ValueArray &values, const std::shared_ptr< std::vector< bool >> &is_valid) |
template<> | |
void | appendToListColumnBuilder< arrow::StringDictionaryBuilder, int64_t > (ArrowResultSetConverter::ColumnBuilder &column_builder, const ValueArray &values, const std::shared_ptr< std::vector< bool >> &is_valid) |
using anonymous_namespace{ArrowResultSetConverter.cpp}::null_type_t = typedef typename null_type<TYPE>::type |
Definition at line 228 of file ArrowResultSetConverter.cpp.
void anonymous_namespace{ArrowResultSetConverter.cpp}::appendToColumnBuilder | ( | ArrowResultSetConverter::ColumnBuilder & | column_builder, |
const ValueArray & | values, | ||
const std::shared_ptr< std::vector< bool >> & | is_valid | ||
) |
Definition at line 1396 of file ArrowResultSetConverter.cpp.
References ARROW_THROW_NOT_OK, ArrowResultSetConverter::ColumnBuilder::builder, CHECK, ArrowResultSetConverter::ColumnBuilder::field, DateConverters::get_epoch_days_from_seconds(), kMilliSecsPerSec, and shared::transform().
void anonymous_namespace{ArrowResultSetConverter.cpp}::appendToColumnBuilder< arrow::Decimal128Builder, int64_t > | ( | ArrowResultSetConverter::ColumnBuilder & | column_builder, |
const ValueArray & | values, | ||
const std::shared_ptr< std::vector< bool >> & | is_valid | ||
) |
Definition at line 1425 of file ArrowResultSetConverter.cpp.
References ARROW_THROW_NOT_OK, CHECK, and CHECK_EQ.
void anonymous_namespace{ArrowResultSetConverter.cpp}::appendToColumnBuilder< arrow::StringBuilder, std::string > | ( | ArrowResultSetConverter::ColumnBuilder & | column_builder, |
const ValueArray & | values, | ||
const std::shared_ptr< std::vector< bool >> & | is_valid | ||
) |
Definition at line 1453 of file ArrowResultSetConverter.cpp.
References ARROW_THROW_NOT_OK, CHECK, and CHECK_EQ.
void anonymous_namespace{ArrowResultSetConverter.cpp}::appendToColumnBuilder< arrow::StringDictionary32Builder, int32_t > | ( | ArrowResultSetConverter::ColumnBuilder & | column_builder, |
const ValueArray & | values, | ||
const std::shared_ptr< std::vector< bool >> & | is_valid | ||
) |
Definition at line 1479 of file ArrowResultSetConverter.cpp.
References ALL_STRINGS_REMAPPED, ARROW_THROW_NOT_OK, CHECK, and INVALID.
void anonymous_namespace{ArrowResultSetConverter.cpp}::appendToListColumnBuilder | ( | ArrowResultSetConverter::ColumnBuilder & | column_builder, |
const ValueArray & | values, | ||
const std::shared_ptr< std::vector< bool >> & | is_valid | ||
) |
Definition at line 1519 of file ArrowResultSetConverter.cpp.
References ARROW_THROW_NOT_OK, ArrowResultSetConverter::ColumnBuilder::builder, CHECK, gpu_enabled::copy(), ArrowResultSetConverter::ColumnBuilder::field, and shared::transform().
void anonymous_namespace{ArrowResultSetConverter.cpp}::appendToListColumnBuilder< arrow::StringDictionaryBuilder, int64_t > | ( | ArrowResultSetConverter::ColumnBuilder & | column_builder, |
const ValueArray & | values, | ||
const std::shared_ptr< std::vector< bool >> & | is_valid | ||
) |
Definition at line 1570 of file ArrowResultSetConverter.cpp.
References ARROW_THROW_NOT_OK, CHECK, remap_string_values(), and shared::transform().
void anonymous_namespace{ArrowResultSetConverter.cpp}::convert_column | ( | ResultSetPtr | result, |
size_t | col, | ||
size_t | entry_count, | ||
std::shared_ptr< arrow::Array > & | out | ||
) |
Definition at line 232 of file ArrowResultSetConverter.cpp.
References CHECK, and run_benchmark_import::res.
void anonymous_namespace{ArrowResultSetConverter.cpp}::create_or_append_validity | ( | const ArrayTargetValue & | value, |
const SQLTypeInfo & | col_type, | ||
std::shared_ptr< std::vector< bool >> & | null_bitmap, | ||
const size_t | max_size | ||
) |
Definition at line 159 of file ArrowResultSetConverter.cpp.
References CHECK, and SQLTypeInfo::get_notnull().
Referenced by ArrowResultSetConverter::getArrowBatch().
void anonymous_namespace{ArrowResultSetConverter.cpp}::create_or_append_validity | ( | const ScalarTargetValue & | value, |
const SQLTypeInfo & | col_type, | ||
std::shared_ptr< std::vector< bool >> & | null_bitmap, | ||
const size_t | max_size | ||
) |
Definition at line 177 of file ArrowResultSetConverter.cpp.
References CHECK, SQLTypeInfo::get_notnull(), inline_fp_null_val(), inline_int_null_val(), SQLTypeInfo::is_boolean(), SQLTypeInfo::is_decimal(), SQLTypeInfo::is_dict_encoded_string(), SQLTypeInfo::is_fp(), SQLTypeInfo::is_integer(), SQLTypeInfo::is_time(), and UNREACHABLE.
void anonymous_namespace{ArrowResultSetConverter.cpp}::create_or_append_value | ( | const ScalarTargetValue & | val_cty, |
std::shared_ptr< ValueArray > & | values, | ||
const size_t | max_size | ||
) |
void anonymous_namespace{ArrowResultSetConverter.cpp}::create_or_append_value | ( | const ArrayTargetValue & | val_ctys, |
std::shared_ptr< ValueArray > & | values, | ||
const size_t | max_size | ||
) |
std::shared_ptr<arrow::DataType> anonymous_namespace{ArrowResultSetConverter.cpp}::get_arrow_type | ( | const SQLTypeInfo & | sql_type, |
const ExecutorDeviceType | device_type | ||
) |
Definition at line 1114 of file ArrowResultSetConverter.cpp.
References foreign_storage::get_physical_type(), SQLTypeInfo::get_precision(), SQLTypeInfo::get_scale(), SQLTypeInfo::get_subtype(), SQLTypeInfo::get_type_name(), GPU, SQLTypeInfo::is_dict_encoded_string(), SQLTypeInfo::is_dict_encoded_type(), kARRAY, kBIGINT, kBOOLEAN, kCHAR, kDATE, kDECIMAL, kDOUBLE, kFLOAT, kINT, kINTERVAL_DAY_TIME, kINTERVAL_YEAR_MONTH, kNUMERIC, kSMALLINT, kTEXT, kTIME, kTIMESTAMP, kTINYINT, kVARCHAR, and to_string().
Referenced by ArrowResultSetConverter::makeField().
|
inline |
Definition at line 73 of file ArrowResultSetConverter.cpp.
References CHECK, SQLTypeInfo::get_size(), SQLTypeInfo::get_type(), SQLTypeInfo::is_dict_encoded_string(), kBIGINT, kINT, kSMALLINT, and kTINYINT.
Referenced by ArrowResultSetConverter::initializeColumnBuilder().
|
inline |
Definition at line 90 of file ArrowResultSetConverter.cpp.
References CHECK, SQLTypeInfo::get_size(), SQLTypeInfo::get_type(), IS_INTEGER, kBIGINT, kINT, kSMALLINT, and kTINYINT.
std::pair<key_t, void*> anonymous_namespace{ArrowResultSetConverter.cpp}::get_shm | ( | size_t | shmsz | ) |
Definition at line 320 of file ArrowResultSetConverter.cpp.
Referenced by arrow::get_and_copy_to_shm(), and get_shm_buffer().
std::pair<key_t, std::shared_ptr<arrow::Buffer> > anonymous_namespace{ArrowResultSetConverter.cpp}::get_shm_buffer | ( | size_t | size | ) |
Definition at line 358 of file ArrowResultSetConverter.cpp.
References get_shm().
Referenced by ArrowResultSetConverter::getArrowResult().
void anonymous_namespace{ArrowResultSetConverter.cpp}::remap_string_values | ( | const ArrowResultSetConverter::ColumnBuilder & | column_builder, |
const std::vector< uint8_t > & | bitmap, | ||
std::vector< int64_t > & | vec1d | ||
) |
Definition at line 371 of file ArrowResultSetConverter.cpp.
References ALL_STRINGS_REMAPPED, ONLY_TRANSIENT_STRINGS_REMAPPED, ArrowResultSetConverter::ColumnBuilder::string_remap_mode, ArrowResultSetConverter::ColumnBuilder::string_remapping, and UNREACHABLE.
Referenced by appendToListColumnBuilder< arrow::StringDictionaryBuilder, int64_t >().