OmniSciDB
a5dc49c757
|
#include <TargetValueConvertersImpl.h>
Public Member Functions | |
StringValueConverter (const ColumnDescriptor *cd, size_t num_rows, bool dictEncoded, const shared::StringDictKey &source_dict_key, StringDictionaryProxy *literals_dict) | |
~StringValueConverter () override | |
void | allocateColumnarData (size_t num_rows) override |
void | convertToColumnarFormatFromDict (size_t row, const TargetValue *value) |
void | convertToColumnarFormatFromString (size_t row, const TargetValue *value) |
void | convertToColumnarFormat (size_t row, const TargetValue *value) override |
void | addDataBlocksToInsertData (Fragmenter_Namespace::InsertData &insertData) override |
Public Member Functions inherited from TargetValueConverter | |
TargetValueConverter (const ColumnDescriptor *cd) | |
virtual | ~TargetValueConverter () |
virtual void | finalizeDataBlocksForInsertData () |
Public Attributes | |
std::unique_ptr< std::vector < std::string > > | column_data_ |
boost_variant_accessor< int64_t > | SOURCE_TYPE_ACCESSOR |
StringDictionary * | source_dict_ |
StringDictionaryProxy * | literals_source_dict_ |
bool | dict_encoded_ |
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 416 of file TargetValueConvertersImpl.h.
|
inline |
Definition at line 425 of file TargetValueConvertersImpl.h.
References allocateColumnarData(), CHECK, shared::StringDictKey::db_id, dict_encoded_, shared::StringDictKey::dict_id, Catalog_Namespace::SysCatalog::getCatalog(), Catalog_Namespace::SysCatalog::instance(), literals_source_dict_, and source_dict_.
|
inlineoverride |
Definition at line 453 of file TargetValueConvertersImpl.h.
|
inlineoverridevirtual |
Implements TargetValueConverter.
Definition at line 504 of file TargetValueConvertersImpl.h.
References column_data_, TargetValueConverter::column_descriptor_, ColumnDescriptor::columnId, Fragmenter_Namespace::InsertData::columnIds, Fragmenter_Namespace::InsertData::data, and DataBlockPtr::stringsPtr.
|
inlineoverridevirtual |
Implements TargetValueConverter.
Definition at line 455 of file TargetValueConvertersImpl.h.
References CHECK, and column_data_.
Referenced by StringValueConverter().
|
inlineoverridevirtual |
Implements TargetValueConverter.
Definition at line 496 of file TargetValueConvertersImpl.h.
References convertToColumnarFormatFromDict(), convertToColumnarFormatFromString(), and dict_encoded_.
|
inline |
Definition at line 460 of file TargetValueConvertersImpl.h.
References CHECK_EQ, StringDictionaryProxy::getString(), StringDictionary::getString(), literals_source_dict_, TargetValueConverter::SCALAR_TARGET_VALUE_ACCESSOR, source_dict_, and SOURCE_TYPE_ACCESSOR.
Referenced by convertToColumnarFormat().
|
inline |
Definition at line 483 of file TargetValueConvertersImpl.h.
References TargetValueConverter::NULLABLE_STRING_ACCESSOR, TargetValueConverter::SCALAR_TARGET_VALUE_ACCESSOR, and TargetValueConverter::STRING_ACCESSOR.
Referenced by convertToColumnarFormat().
std::unique_ptr<std::vector<std::string> > StringValueConverter::column_data_ |
Definition at line 417 of file TargetValueConvertersImpl.h.
Referenced by addDataBlocksToInsertData(), and allocateColumnarData().
bool StringValueConverter::dict_encoded_ |
Definition at line 423 of file TargetValueConvertersImpl.h.
Referenced by convertToColumnarFormat(), and StringValueConverter().
StringDictionaryProxy* StringValueConverter::literals_source_dict_ |
Definition at line 422 of file TargetValueConvertersImpl.h.
Referenced by convertToColumnarFormatFromDict(), and StringValueConverter().
StringDictionary* StringValueConverter::source_dict_ |
Definition at line 421 of file TargetValueConvertersImpl.h.
Referenced by convertToColumnarFormatFromDict(), and StringValueConverter().
boost_variant_accessor<int64_t> StringValueConverter::SOURCE_TYPE_ACCESSOR |
Definition at line 419 of file TargetValueConvertersImpl.h.
Referenced by convertToColumnarFormatFromDict().