OmniSciDB
a5dc49c757
|
#include <StringViewToScalarEncoder.h>
Public Member Functions | |
StringViewToScalarEncoder (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< DataType, 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 () |
DataType | convertAndUpdateMetadata (const std::string_view &typed_value) |
DataType | convert (const std::string_view &typed_value) |
Private Attributes | |
SQLTypeInfo | dst_type_info_ |
const Chunk_NS::Chunk & | dst_chunk_ |
AbstractBuffer * | buffer_ |
const bool | is_date_in_days_ |
std::optional < DateDaysOverflowValidator > | date_days_overflow_validator_ |
std::optional < DecimalOverflowValidator > | decimal_overflow_validator_ |
Additional Inherited Members | |
Public Types inherited from data_conversion::TypedBaseConvertEncoder< DataType, MetadataType > | |
using | DataType = DataType |
using | MetadataType = MetadataType |
Protected Member Functions inherited from data_conversion::TypedBaseConvertEncoder< DataType, 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 | |
template<typename DataType > | |
bool | isNull (const DataType &typed_value) |
Protected Attributes inherited from data_conversion::TypedBaseConvertEncoder< DataType, 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 25 of file StringViewToScalarEncoder.h.
|
inline |
Definition at line 27 of file StringViewToScalarEncoder.h.
References data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::initialize().
|
inlineoverridevirtual |
Reimplemented from data_conversion::BaseConvertEncoder.
Definition at line 45 of file StringViewToScalarEncoder.h.
References data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::buffer_, data_conversion::BaseConvertEncoder::clear(), and Data_Namespace::AbstractBuffer::resetToEmpty().
|
inlineprivate |
Definition at line 105 of file StringViewToScalarEncoder.h.
References CHECK, data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::date_days_overflow_validator_, data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::decimal_overflow_validator_, data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::dst_type_info_, DateConverters::get_epoch_days_from_seconds(), data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::is_date_in_days_, SQLTypeInfo::is_none_encoded_string(), kBIGINT, kBOOLEAN, kDATE, kDECIMAL, kDOUBLE, kENCODING_FIXED, kFLOAT, kINT, kNUMERIC, kSMALLINT, kTIME, kTIMESTAMP, kTINYINT, run_benchmark_import::result, StringToDatum(), and UNREACHABLE.
Referenced by data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::convertAndUpdateMetadata().
|
inlineprivate |
Definition at line 69 of file StringViewToScalarEncoder.h.
References data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::convert(), data_conversion::BaseConvertEncoder::delete_buffer_, data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::dst_type_info_, data_conversion::BaseConvertEncoder::error_tracking_enabled_, SQLTypeInfo::get_notnull(), data_conversion::TypedBaseConvertEncoder< DataType_, MetadataType_ >::getNull(), data_conversion::BaseConvertEncoder::has_nulls_, data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::is_date_in_days_, data_conversion::BaseConvertEncoder::isNull(), and data_conversion::TypedBaseConvertEncoder< DataType_, MetadataType_ >::updateMetadataStats().
Referenced by data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::encodeAndAppendData().
|
inlineoverridevirtual |
Implements data_conversion::BaseConvertEncoder.
Definition at line 37 of file StringViewToScalarEncoder.h.
References Data_Namespace::AbstractBuffer::append(), data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::buffer_, and data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::convertAndUpdateMetadata().
|
inline |
Definition at line 52 of file StringViewToScalarEncoder.h.
References data_conversion::BaseConvertEncoder::delete_buffer_.
|
inline |
Definition at line 50 of file StringViewToScalarEncoder.h.
References data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::dst_chunk_.
|
inlineprivate |
Definition at line 57 of file StringViewToScalarEncoder.h.
References data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::buffer_, ColumnDescriptor::columnType, data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::date_days_overflow_validator_, data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::decimal_overflow_validator_, data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::dst_chunk_, data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::dst_type_info_, Chunk_NS::Chunk::getBuffer(), Chunk_NS::Chunk::getColumnDesc(), data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::is_date_in_days_, and SQLTypeInfo::is_decimal().
Referenced by data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::StringViewToScalarEncoder().
|
private |
Definition at line 173 of file StringViewToScalarEncoder.h.
Referenced by data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::clear(), data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::encodeAndAppendData(), and data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::initialize().
|
private |
Definition at line 178 of file StringViewToScalarEncoder.h.
Referenced by data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::convert(), and data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::initialize().
|
private |
Definition at line 179 of file StringViewToScalarEncoder.h.
Referenced by data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::convert(), and data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::initialize().
|
private |
Definition at line 172 of file StringViewToScalarEncoder.h.
Referenced by data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::getDstChunk(), and data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::initialize().
|
private |
Definition at line 171 of file StringViewToScalarEncoder.h.
Referenced by data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::convert(), data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::convertAndUpdateMetadata(), and data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::initialize().
|
private |
Definition at line 175 of file StringViewToScalarEncoder.h.
Referenced by data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::convert(), data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::convertAndUpdateMetadata(), and data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::initialize().