OmniSciDB
a5dc49c757
|
#include <StringViewToArrayEncoder.h>
Public Types | |
using | DstDataType = typename ScalarEncoderType::DataType |
Public Types inherited from data_conversion::TypedBaseConvertEncoder< ScalarEncoderType::DataType, ScalarEncoderType::MetadataType > | |
using | DataType = ScalarEncoderType::DataType |
using | MetadataType = ScalarEncoderType::MetadataType |
Public Member Functions | |
StringViewToArrayEncoder (const Chunk_NS::Chunk &scalar_temp_chunk, const Chunk_NS::Chunk &dst_chunk, const bool error_tracking_enabled) | |
void | encodeAndAppendData (const int8_t *data, const size_t num_elements) override |
void | appendArrayDatums (const size_t num_elements, std::optional< std::vector< bool >> &error_occurred, int8_t *current_data, size_t current_scalar_offset) |
void | clearLocalState (const size_t num_elements) |
void | encodeScalarData (const size_t num_elements, const std::string_view *typed_data, const import_export::CopyParams &default_copy_params, std::optional< std::vector< bool >> &error_occurred) |
Public Member Functions inherited from data_conversion::TypedBaseConvertEncoder< ScalarEncoderType::DataType, ScalarEncoderType::MetadataType > | |
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_ |
const Chunk_NS::Chunk & | scalar_temp_chunk_ |
AbstractBuffer * | buffer_ |
ScalarEncoderType | scalar_encoder_ |
std::vector< std::string > | array_ |
std::vector< std::string_view > | array_views_ |
std::vector< ArrayDatum > | array_datums_ |
std::vector< size_t > | array_sizes_ |
std::vector< bool > | is_null_ |
Additional Inherited Members | |
Protected Member Functions inherited from data_conversion::TypedBaseConvertEncoder< ScalarEncoderType::DataType, ScalarEncoderType::MetadataType > | |
DataType | getNull () const |
void | updateMetadataStats (const DataType &typed_value, const bool is_date_in_days=false) |
Protected Member Functions inherited from data_conversion::BaseConvertEncoder | |
virtual void | clear () |
template<typename DataType > | |
bool | isNull (const DataType &typed_value) |
Protected Attributes inherited from data_conversion::TypedBaseConvertEncoder< ScalarEncoderType::DataType, ScalarEncoderType::MetadataType > | |
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 29 of file StringViewToArrayEncoder.h.
using data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::DstDataType = typename ScalarEncoderType::DataType |
Definition at line 33 of file StringViewToArrayEncoder.h.
|
inline |
Definition at line 35 of file StringViewToArrayEncoder.h.
References data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::initialize().
|
inline |
Definition at line 70 of file StringViewToArrayEncoder.h.
References data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::array_datums_, data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::array_sizes_, data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::buffer_, CHECK, import_export::ImporterUtils::composeNullArray(), data_conversion::BaseConvertEncoder::delete_buffer_, data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::dst_type_info_, data_conversion::BaseConvertEncoder::error_tracking_enabled_, SQLTypeInfo::get_notnull(), SQLTypeInfo::get_size(), Data_Namespace::AbstractBuffer::getEncoder(), SQLTypeInfo::is_fixlen_array(), data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::is_null_, SQLTypeInfo::is_varlen_array(), data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::scalar_encoder_, to_string(), and UNREACHABLE.
Referenced by data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::encodeAndAppendData().
|
inline |
Definition at line 144 of file StringViewToArrayEncoder.h.
References data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::array_datums_, data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::array_sizes_, data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::is_null_, and data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::scalar_encoder_.
Referenced by data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::encodeAndAppendData().
|
inlineoverridevirtual |
Implements data_conversion::BaseConvertEncoder.
Definition at line 47 of file StringViewToArrayEncoder.h.
References data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::appendArrayDatums(), data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::clearLocalState(), data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::encodeScalarData(), data_conversion::BaseConvertEncoder::error_tracking_enabled_, and data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::scalar_encoder_.
|
inline |
Definition at line 154 of file StringViewToArrayEncoder.h.
References data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::array_, data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::array_sizes_, data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::array_views_, data_conversion::BaseConvertEncoder::error_tracking_enabled_, data_conversion::BaseConvertEncoder::has_nulls_, data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::is_null_, import_export::delimited_parser::parse_string_array(), and data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::scalar_encoder_.
Referenced by data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::encodeAndAppendData().
|
inlineprivate |
Definition at line 196 of file StringViewToArrayEncoder.h.
References data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::buffer_, ColumnDescriptor::columnType, data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::dst_chunk_, data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::dst_type_info_, Chunk_NS::Chunk::getBuffer(), and Chunk_NS::Chunk::getColumnDesc().
Referenced by data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::StringViewToArrayEncoder().
|
private |
Definition at line 209 of file StringViewToArrayEncoder.h.
Referenced by data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::encodeScalarData().
|
private |
Definition at line 211 of file StringViewToArrayEncoder.h.
Referenced by data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::appendArrayDatums(), and data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::clearLocalState().
|
private |
Definition at line 212 of file StringViewToArrayEncoder.h.
Referenced by data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::appendArrayDatums(), data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::clearLocalState(), and data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::encodeScalarData().
|
private |
Definition at line 210 of file StringViewToArrayEncoder.h.
Referenced by data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::encodeScalarData().
|
private |
Definition at line 205 of file StringViewToArrayEncoder.h.
Referenced by data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::appendArrayDatums(), and data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::initialize().
|
private |
Definition at line 203 of file StringViewToArrayEncoder.h.
Referenced by data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::initialize().
|
private |
Definition at line 202 of file StringViewToArrayEncoder.h.
Referenced by data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::appendArrayDatums(), and data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::initialize().
|
private |
Definition at line 213 of file StringViewToArrayEncoder.h.
Referenced by data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::appendArrayDatums(), data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::clearLocalState(), and data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::encodeScalarData().
|
private |
Definition at line 207 of file StringViewToArrayEncoder.h.
Referenced by data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::appendArrayDatums(), data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::clearLocalState(), data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::encodeAndAppendData(), and data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::encodeScalarData().
|
private |
Definition at line 204 of file StringViewToArrayEncoder.h.