OmniSciDB
a5dc49c757
|
#include <BaseConvertEncoder.h>
Public Member Functions | |
virtual | ~BaseConvertEncoder () |
BaseConvertEncoder (const bool error_tracking_enabled) | |
void | initializeDeleteBuffer (const size_t size_hint) |
virtual void | finalize (const size_t rows_appended) |
virtual void | encodeAndAppendData (const int8_t *data, const size_t num_elements)=0 |
virtual std::shared_ptr < ChunkMetadata > | getMetadata (const Chunk_NS::Chunk &chunk) const |
Protected Member Functions | |
virtual void | clear () |
template<typename DataType > | |
bool | isNull (const DataType &typed_value) |
Protected Attributes | |
std::optional< std::vector < bool > > | delete_buffer_ |
const bool | error_tracking_enabled_ |
bool | has_nulls_ |
size_t | num_elements_ |
Definition at line 32 of file BaseConvertEncoder.h.
|
inlinevirtual |
Definition at line 34 of file BaseConvertEncoder.h.
|
inline |
Definition at line 36 of file BaseConvertEncoder.h.
|
inlineprotectedvirtual |
Reimplemented in data_conversion::StringViewToStringDictEncoder< IdType >, and data_conversion::StringViewToScalarEncoder< DataType, MetadataType >.
Definition at line 65 of file BaseConvertEncoder.h.
References delete_buffer_, error_tracking_enabled_, and num_elements_.
Referenced by data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::clear(), and data_conversion::StringViewToStringDictEncoder< IdType >::clear().
|
pure virtual |
|
inlinevirtual |
Definition at line 50 of file BaseConvertEncoder.h.
References num_elements_.
|
inlinevirtual |
Reimplemented in data_conversion::TypedBaseConvertEncoder< DataType_, MetadataType_ >, data_conversion::TypedBaseConvertEncoder< ScalarEncoderType::DataType, ScalarEncoderType::MetadataType >, data_conversion::TypedBaseConvertEncoder< IdType >, and data_conversion::TypedBaseConvertEncoder< DataType, MetadataType >.
Definition at line 54 of file BaseConvertEncoder.h.
References ColumnDescriptor::columnType, Chunk_NS::Chunk::getBuffer(), Chunk_NS::Chunk::getColumnDesc(), has_nulls_, num_elements_, and Data_Namespace::AbstractBuffer::size().
Referenced by data_conversion::TypedBaseConvertEncoder< DataType, MetadataType >::getMetadata().
|
inline |
Definition at line 42 of file BaseConvertEncoder.h.
References delete_buffer_.
|
inlineprotected |
Definition at line 73 of file BaseConvertEncoder.h.
Referenced by data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::convertAndUpdateMetadata(), and data_conversion::StringViewToStringDictEncoder< IdType >::encodeAndAppendData().
|
protected |
Definition at line 88 of file BaseConvertEncoder.h.
Referenced by data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::appendArrayDatums(), clear(), data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::convertAndUpdateMetadata(), data_conversion::StringViewToStringNoneEncoder::encodeAndAppendData(), data_conversion::StringViewToStringDictEncoder< IdType >::encodeAndAppendData(), data_conversion::StringViewToGeoEncoder::encodeAndAppendData(), data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::getDeleteBuffer(), data_conversion::StringViewToStringDictEncoder< IdType >::getDeleteBuffer(), and initializeDeleteBuffer().
|
protected |
Definition at line 89 of file BaseConvertEncoder.h.
Referenced by data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::appendArrayDatums(), clear(), data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::convertAndUpdateMetadata(), data_conversion::StringViewToStringNoneEncoder::encodeAndAppendData(), data_conversion::StringViewToStringDictEncoder< IdType >::encodeAndAppendData(), data_conversion::StringViewToGeoEncoder::encodeAndAppendData(), data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::encodeAndAppendData(), and data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::encodeScalarData().
|
protected |
Definition at line 91 of file BaseConvertEncoder.h.
Referenced by data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::convertAndUpdateMetadata(), data_conversion::StringViewToStringNoneEncoder::encodeAndAppendData(), data_conversion::StringViewToStringDictEncoder< IdType >::encodeAndAppendData(), data_conversion::StringViewToArrayEncoder< ScalarEncoderType >::encodeScalarData(), getMetadata(), and data_conversion::TypedBaseConvertEncoder< DataType, MetadataType >::getMetadata().
|
protected |
Definition at line 92 of file BaseConvertEncoder.h.
Referenced by clear(), finalize(), and getMetadata().