OmniSciDB
a5dc49c757
|
#include <TargetValueConvertersImpl.h>
Public Types | |
using | ColumnDataPtr = std::unique_ptr< TARGET_TYPE, CheckedMallocDeleter< TARGET_TYPE >> |
using | ElementsBufferColumnPtr = ColumnDataPtr |
using | CasterFunc = std::function< TARGET_TYPE(SOURCE_TYPE, bool, TARGET_TYPE)> |
Public Member Functions | |
NumericValueConverter (const ColumnDescriptor *cd, size_t num_rows, TARGET_TYPE nullValue, SOURCE_TYPE nullCheckValue, bool doNullCheck) | |
~NumericValueConverter () override | |
void | setValueCaster (CasterFunc caster) |
void | populateFixedArrayNullSentinel (size_t num_rows) |
void | allocateColumnarData (size_t num_rows) override |
ElementsBufferColumnPtr | allocateColumnarBuffer (size_t num_rows) |
void | convertElementToColumnarFormat (size_t row, typename ElementsBufferColumnPtr::pointer columnData, const ScalarTargetValue *scalarValue) |
void | convertToColumnarFormat (size_t row, const ScalarTargetValue *scalarValue) |
void | convertToColumnarFormat (size_t row, const TargetValue *value) override |
void | processArrayBuffer (std::unique_ptr< std::vector< std::pair< size_t, ElementsBufferColumnPtr >>> &array_buffer, std::unique_ptr< std::vector< ArrayDatum >>::pointer arrayData) |
void | addDataBlocksToInsertData (Fragmenter_Namespace::InsertData &insertData) override |
Public Member Functions inherited from TargetValueConverter | |
TargetValueConverter (const ColumnDescriptor *cd) | |
virtual | ~TargetValueConverter () |
virtual void | finalizeDataBlocksForInsertData () |
Public Attributes | |
ColumnDataPtr | column_data_ |
TARGET_TYPE | null_value_ |
SOURCE_TYPE | null_check_value_ |
bool | do_null_check_ |
TARGET_TYPE | fixed_array_null_value_ |
CasterFunc | checked_caster_ = nullptr |
boost_variant_accessor < SOURCE_TYPE > | SOURCE_TYPE_ACCESSOR |
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 56 of file TargetValueConvertersImpl.h.
using NumericValueConverter< SOURCE_TYPE, TARGET_TYPE >::CasterFunc = std::function<TARGET_TYPE(SOURCE_TYPE, bool, TARGET_TYPE)> |
Definition at line 59 of file TargetValueConvertersImpl.h.
using NumericValueConverter< SOURCE_TYPE, TARGET_TYPE >::ColumnDataPtr = std::unique_ptr<TARGET_TYPE, CheckedMallocDeleter<TARGET_TYPE>> |
Definition at line 57 of file TargetValueConvertersImpl.h.
using NumericValueConverter< SOURCE_TYPE, TARGET_TYPE >::ElementsBufferColumnPtr = ColumnDataPtr |
Definition at line 58 of file TargetValueConvertersImpl.h.
|
inline |
Definition at line 70 of file TargetValueConvertersImpl.h.
|
inlineoverride |
Definition at line 85 of file TargetValueConvertersImpl.h.
|
inlineoverridevirtual |
Implements TargetValueConverter.
Definition at line 151 of file TargetValueConvertersImpl.h.
|
inline |
Definition at line 101 of file TargetValueConvertersImpl.h.
|
inlineoverridevirtual |
Implements TargetValueConverter.
Definition at line 95 of file TargetValueConvertersImpl.h.
Referenced by NumericValueConverter< int64_t, TARGET_TYPE >::NumericValueConverter(), and NumericValueConverter< int64_t, TARGET_TYPE >::populateFixedArrayNullSentinel().
|
inline |
Definition at line 107 of file TargetValueConvertersImpl.h.
Referenced by NumericValueConverter< int64_t, TARGET_TYPE >::convertToColumnarFormat().
|
inline |
Definition at line 125 of file TargetValueConvertersImpl.h.
Referenced by NumericValueConverter< int64_t, TARGET_TYPE >::convertToColumnarFormat().
|
inlineoverridevirtual |
Implements TargetValueConverter.
Definition at line 129 of file TargetValueConvertersImpl.h.
|
inline |
Definition at line 89 of file TargetValueConvertersImpl.h.
|
inline |
Definition at line 135 of file TargetValueConvertersImpl.h.
|
inline |
Definition at line 87 of file TargetValueConvertersImpl.h.
CasterFunc NumericValueConverter< SOURCE_TYPE, TARGET_TYPE >::checked_caster_ = nullptr |
Definition at line 66 of file TargetValueConvertersImpl.h.
Referenced by NumericValueConverter< int64_t, TARGET_TYPE >::convertElementToColumnarFormat(), and NumericValueConverter< int64_t, TARGET_TYPE >::setValueCaster().
ColumnDataPtr NumericValueConverter< SOURCE_TYPE, TARGET_TYPE >::column_data_ |
Definition at line 61 of file TargetValueConvertersImpl.h.
Referenced by NumericValueConverter< int64_t, TARGET_TYPE >::addDataBlocksToInsertData(), NumericValueConverter< int64_t, TARGET_TYPE >::allocateColumnarData(), NumericValueConverter< int64_t, TARGET_TYPE >::convertToColumnarFormat(), and NumericValueConverter< int64_t, TARGET_TYPE >::populateFixedArrayNullSentinel().
bool NumericValueConverter< SOURCE_TYPE, TARGET_TYPE >::do_null_check_ |
Definition at line 64 of file TargetValueConvertersImpl.h.
Referenced by NumericValueConverter< int64_t, TARGET_TYPE >::convertElementToColumnarFormat().
TARGET_TYPE NumericValueConverter< SOURCE_TYPE, TARGET_TYPE >::fixed_array_null_value_ |
Definition at line 65 of file TargetValueConvertersImpl.h.
Referenced by NumericValueConverter< int64_t, TARGET_TYPE >::NumericValueConverter(), and NumericValueConverter< int64_t, TARGET_TYPE >::populateFixedArrayNullSentinel().
SOURCE_TYPE NumericValueConverter< SOURCE_TYPE, TARGET_TYPE >::null_check_value_ |
Definition at line 63 of file TargetValueConvertersImpl.h.
Referenced by NumericValueConverter< int64_t, TARGET_TYPE >::convertElementToColumnarFormat().
TARGET_TYPE NumericValueConverter< SOURCE_TYPE, TARGET_TYPE >::null_value_ |
Definition at line 62 of file TargetValueConvertersImpl.h.
Referenced by NumericValueConverter< int64_t, TARGET_TYPE >::convertElementToColumnarFormat().
boost_variant_accessor<SOURCE_TYPE> NumericValueConverter< SOURCE_TYPE, TARGET_TYPE >::SOURCE_TYPE_ACCESSOR |
Definition at line 68 of file TargetValueConvertersImpl.h.
Referenced by NumericValueConverter< int64_t, TARGET_TYPE >::convertElementToColumnarFormat().