OmniSciDB
a5dc49c757
|
#include <StringViewToStringDictEncoder.h>
Public Member Functions | |
StringViewToStringDictEncoder (const Chunk_NS::Chunk &dst_chunk, const bool error_tracking_enabled) | |
void | encodeAndAppendData (const int8_t *data, const size_t num_elements) override |
void | clear () override |
const Chunk_NS::Chunk & | getDstChunk () const |
std::optional< std::vector < bool > > & | getDeleteBuffer () |
Public Member Functions inherited from data_conversion::TypedBaseConvertEncoder< IdType > | |
TypedBaseConvertEncoder (const bool error_tracking_enabled) | |
std::shared_ptr< ChunkMetadata > | getMetadata (const Chunk_NS::Chunk &chunk) const override |
Public Member Functions inherited from data_conversion::BaseConvertEncoder | |
virtual | ~BaseConvertEncoder () |
BaseConvertEncoder (const bool error_tracking_enabled) | |
void | initializeDeleteBuffer (const size_t size_hint) |
virtual void | finalize (const size_t rows_appended) |
Private Member Functions | |
void | initialize () |
Private Attributes | |
SQLTypeInfo | dst_type_info_ |
const Chunk_NS::Chunk & | dst_chunk_ |
StringDictionary * | string_dict_ |
std::vector< IdType > | dict_encoding_output_buffer_ |
AbstractBuffer * | buffer_ |
Additional Inherited Members | |
Public Types inherited from data_conversion::TypedBaseConvertEncoder< IdType > | |
using | DataType = IdType |
using | MetadataType = IdType |
Protected Member Functions inherited from data_conversion::TypedBaseConvertEncoder< IdType > | |
DataType | getNull () const |
void | updateMetadataStats (const DataType &typed_value, const bool is_date_in_days=false) |
Protected Member Functions inherited from data_conversion::BaseConvertEncoder | |
template<typename DataType > | |
bool | isNull (const DataType &typed_value) |
Protected Attributes inherited from data_conversion::TypedBaseConvertEncoder< IdType > | |
MetadataType | min_ |
MetadataType | max_ |
Protected Attributes inherited from data_conversion::BaseConvertEncoder | |
std::optional< std::vector < bool > > | delete_buffer_ |
const bool | error_tracking_enabled_ |
bool | has_nulls_ |
size_t | num_elements_ |
Definition at line 25 of file StringViewToStringDictEncoder.h.
|
inline |
Definition at line 27 of file StringViewToStringDictEncoder.h.
References data_conversion::StringViewToStringDictEncoder< IdType >::initialize().
|
inlineoverridevirtual |
Reimplemented from data_conversion::BaseConvertEncoder.
Definition at line 85 of file StringViewToStringDictEncoder.h.
References data_conversion::StringViewToStringDictEncoder< IdType >::buffer_, data_conversion::BaseConvertEncoder::clear(), and Data_Namespace::AbstractBuffer::resetToEmpty().
|
inlineoverridevirtual |
Implements data_conversion::BaseConvertEncoder.
Definition at line 33 of file StringViewToStringDictEncoder.h.
References Data_Namespace::AbstractBuffer::append(), data_conversion::StringViewToStringDictEncoder< IdType >::buffer_, CHECK, data_conversion::BaseConvertEncoder::delete_buffer_, data_conversion::StringViewToStringDictEncoder< IdType >::dict_encoding_output_buffer_, data_conversion::StringViewToStringDictEncoder< IdType >::dst_type_info_, data_conversion::BaseConvertEncoder::error_tracking_enabled_, SQLTypeInfo::get_notnull(), StringDictionary::getOrAddBulk(), data_conversion::BaseConvertEncoder::has_nulls_, data_conversion::BaseConvertEncoder::isNull(), StringDictionary::MAX_STRLEN, data_conversion::StringViewToStringDictEncoder< IdType >::string_dict_, to_string(), and data_conversion::TypedBaseConvertEncoder< DataType_, MetadataType_ >::updateMetadataStats().
|
inline |
Definition at line 92 of file StringViewToStringDictEncoder.h.
References data_conversion::BaseConvertEncoder::delete_buffer_.
|
inline |
Definition at line 90 of file StringViewToStringDictEncoder.h.
References data_conversion::StringViewToStringDictEncoder< IdType >::dst_chunk_.
|
inlineprivate |
Definition at line 97 of file StringViewToStringDictEncoder.h.
References data_conversion::StringViewToStringDictEncoder< IdType >::buffer_, ColumnDescriptor::columnType, data_conversion::StringViewToStringDictEncoder< IdType >::dst_chunk_, data_conversion::StringViewToStringDictEncoder< IdType >::dst_type_info_, Chunk_NS::Chunk::getBuffer(), Catalog_Namespace::SysCatalog::getCatalog(), Chunk_NS::Chunk::getColumnDesc(), Catalog_Namespace::SysCatalog::instance(), and data_conversion::StringViewToStringDictEncoder< IdType >::string_dict_.
Referenced by data_conversion::StringViewToStringDictEncoder< IdType >::StringViewToStringDictEncoder().
|
private |
Definition at line 113 of file StringViewToStringDictEncoder.h.
Referenced by data_conversion::StringViewToStringDictEncoder< IdType >::clear(), data_conversion::StringViewToStringDictEncoder< IdType >::encodeAndAppendData(), and data_conversion::StringViewToStringDictEncoder< IdType >::initialize().
|
private |
Definition at line 111 of file StringViewToStringDictEncoder.h.
Referenced by data_conversion::StringViewToStringDictEncoder< IdType >::encodeAndAppendData().
|
private |
Definition at line 108 of file StringViewToStringDictEncoder.h.
Referenced by data_conversion::StringViewToStringDictEncoder< IdType >::getDstChunk(), and data_conversion::StringViewToStringDictEncoder< IdType >::initialize().
|
private |
Definition at line 107 of file StringViewToStringDictEncoder.h.
Referenced by data_conversion::StringViewToStringDictEncoder< IdType >::encodeAndAppendData(), and data_conversion::StringViewToStringDictEncoder< IdType >::initialize().
|
private |
Definition at line 109 of file StringViewToStringDictEncoder.h.
Referenced by data_conversion::StringViewToStringDictEncoder< IdType >::encodeAndAppendData(), and data_conversion::StringViewToStringDictEncoder< IdType >::initialize().