OmniSciDB
a5dc49c757
|
#include <TargetValueConvertersImpl.h>
Public Member Functions | |
ArrayValueConverter (const ColumnDescriptor *cd, size_t num_rows, std::unique_ptr< ELEMENT_CONVERTER > element_converter, bool do_check_null) | |
~ArrayValueConverter () override | |
void | allocateColumnarData (size_t num_rows) override |
void | convertToColumnarFormat (size_t row, const TargetValue *value) override |
void | finalizeDataBlocksForInsertData () override |
void | addDataBlocksToInsertData (Fragmenter_Namespace::InsertData &insertData) override |
Public Member Functions inherited from TargetValueConverter | |
TargetValueConverter (const ColumnDescriptor *cd) | |
virtual | ~TargetValueConverter () |
Public Attributes | |
std::unique_ptr< std::vector < std::pair< size_t, typename ELEMENT_CONVERTER::ElementsBufferColumnPtr > > > | column_buffer_ |
std::unique_ptr< std::vector < ArrayDatum > > | column_data_ |
std::unique_ptr < ELEMENT_CONVERTER > | element_converter_ |
SQLTypeInfo | element_type_info_ |
bool | do_check_null_ |
bool | data_finalized_ = false |
int8_t * | fixed_array_null_sentinel_ |
size_t | fixed_array_size_ |
size_t | fixed_array_elements_count_ |
boost_variant_accessor < ArrayTargetValue > | ARRAY_VALUE_ACCESSOR |
Public Attributes inherited from TargetValueConverter | |
const ColumnDescriptor * | column_descriptor_ |
boost_variant_accessor < ScalarTargetValue > | SCALAR_TARGET_VALUE_ACCESSOR |
boost_variant_accessor < ArrayTargetValue > | ARRAY_TARGET_VALUE_ACCESSOR |
boost_variant_accessor < GeoTargetValue > | GEO_TARGET_VALUE_ACCESSOR |
boost_variant_accessor < NullableString > | NULLABLE_STRING_ACCESSOR |
boost_variant_accessor < std::string > | STRING_ACCESSOR |
Definition at line 513 of file TargetValueConvertersImpl.h.
|
inline |
Definition at line 528 of file TargetValueConvertersImpl.h.
References ArrayValueConverter< ELEMENT_CONVERTER >::allocateColumnarData(), ColumnDescriptor::columnType, ArrayValueConverter< ELEMENT_CONVERTER >::element_converter_, ArrayValueConverter< ELEMENT_CONVERTER >::fixed_array_elements_count_, ArrayValueConverter< ELEMENT_CONVERTER >::fixed_array_null_sentinel_, ArrayValueConverter< ELEMENT_CONVERTER >::fixed_array_size_, and SQLTypeInfo::get_size().
|
inlineoverride |
Definition at line 554 of file TargetValueConvertersImpl.h.
|
inlineoverridevirtual |
Implements TargetValueConverter.
Definition at line 614 of file TargetValueConvertersImpl.h.
References DataBlockPtr::arraysPtr, ArrayValueConverter< ELEMENT_CONVERTER >::column_data_, TargetValueConverter::column_descriptor_, ColumnDescriptor::columnId, Fragmenter_Namespace::InsertData::columnIds, Fragmenter_Namespace::InsertData::data, and ArrayValueConverter< ELEMENT_CONVERTER >::finalizeDataBlocksForInsertData().
|
inlineoverridevirtual |
Implements TargetValueConverter.
Definition at line 556 of file TargetValueConvertersImpl.h.
References CHECK, ArrayValueConverter< ELEMENT_CONVERTER >::column_buffer_, and ArrayValueConverter< ELEMENT_CONVERTER >::column_data_.
Referenced by ArrayValueConverter< ELEMENT_CONVERTER >::ArrayValueConverter().
|
inlineoverridevirtual |
Implements TargetValueConverter.
Definition at line 564 of file TargetValueConvertersImpl.h.
References ArrayValueConverter< ELEMENT_CONVERTER >::ARRAY_VALUE_ACCESSOR, CHECK, ArrayValueConverter< ELEMENT_CONVERTER >::column_buffer_, ArrayValueConverter< ELEMENT_CONVERTER >::do_check_null_, ArrayValueConverter< ELEMENT_CONVERTER >::element_converter_, ArrayValueConverter< ELEMENT_CONVERTER >::fixed_array_elements_count_, ArrayValueConverter< ELEMENT_CONVERTER >::fixed_array_null_sentinel_, ArrayValueConverter< ELEMENT_CONVERTER >::fixed_array_size_, and is_null().
|
inlineoverridevirtual |
Reimplemented from TargetValueConverter.
Definition at line 607 of file TargetValueConvertersImpl.h.
References ArrayValueConverter< ELEMENT_CONVERTER >::column_buffer_, ArrayValueConverter< ELEMENT_CONVERTER >::column_data_, ArrayValueConverter< ELEMENT_CONVERTER >::data_finalized_, and ArrayValueConverter< ELEMENT_CONVERTER >::element_converter_.
Referenced by ArrayValueConverter< ELEMENT_CONVERTER >::addDataBlocksToInsertData().
boost_variant_accessor<ArrayTargetValue> ArrayValueConverter< ELEMENT_CONVERTER >::ARRAY_VALUE_ACCESSOR |
Definition at line 526 of file TargetValueConvertersImpl.h.
Referenced by ArrayValueConverter< ELEMENT_CONVERTER >::convertToColumnarFormat().
std::unique_ptr< std::vector<std::pair<size_t, typename ELEMENT_CONVERTER::ElementsBufferColumnPtr> > > ArrayValueConverter< ELEMENT_CONVERTER >::column_buffer_ |
std::unique_ptr<std::vector<ArrayDatum> > ArrayValueConverter< ELEMENT_CONVERTER >::column_data_ |
bool ArrayValueConverter< ELEMENT_CONVERTER >::data_finalized_ = false |
Definition at line 521 of file TargetValueConvertersImpl.h.
Referenced by ArrayValueConverter< ELEMENT_CONVERTER >::finalizeDataBlocksForInsertData().
bool ArrayValueConverter< ELEMENT_CONVERTER >::do_check_null_ |
Definition at line 520 of file TargetValueConvertersImpl.h.
Referenced by ArrayValueConverter< ELEMENT_CONVERTER >::convertToColumnarFormat().
std::unique_ptr<ELEMENT_CONVERTER> ArrayValueConverter< ELEMENT_CONVERTER >::element_converter_ |
SQLTypeInfo ArrayValueConverter< ELEMENT_CONVERTER >::element_type_info_ |
Definition at line 519 of file TargetValueConvertersImpl.h.
size_t ArrayValueConverter< ELEMENT_CONVERTER >::fixed_array_elements_count_ |
Definition at line 524 of file TargetValueConvertersImpl.h.
Referenced by ArrayValueConverter< ELEMENT_CONVERTER >::ArrayValueConverter(), and ArrayValueConverter< ELEMENT_CONVERTER >::convertToColumnarFormat().
int8_t* ArrayValueConverter< ELEMENT_CONVERTER >::fixed_array_null_sentinel_ |
Definition at line 522 of file TargetValueConvertersImpl.h.
Referenced by ArrayValueConverter< ELEMENT_CONVERTER >::ArrayValueConverter(), and ArrayValueConverter< ELEMENT_CONVERTER >::convertToColumnarFormat().
size_t ArrayValueConverter< ELEMENT_CONVERTER >::fixed_array_size_ |
Definition at line 523 of file TargetValueConvertersImpl.h.
Referenced by ArrayValueConverter< ELEMENT_CONVERTER >::ArrayValueConverter(), and ArrayValueConverter< ELEMENT_CONVERTER >::convertToColumnarFormat().