Struct NumericValueConverter¶
-
template<typename
SOURCE_TYPE
, typenameTARGET_TYPE
>
structNumericValueConverter
: public TargetValueConverter¶ Public Types
-
template<>
usingColumnDataPtr
= std::unique_ptr<TARGET_TYPE, CheckedMallocDeleter<TARGET_TYPE>>¶
-
template<>
usingElementsBufferColumnPtr
= ColumnDataPtr¶
-
template<>
usingCasterFunc
= std::function<TARGET_TYPE(SOURCE_TYPE, bool, TARGET_TYPE)>¶
Public Functions
-
NumericValueConverter
(const ColumnDescriptor *cd, size_t num_rows, TARGET_TYPE nullValue, SOURCE_TYPE nullCheckValue, bool doNullCheck)¶
-
~NumericValueConverter
()¶
-
void
setValueCaster
(CasterFunc caster)¶
-
void
populateFixedArrayNullSentinel
(size_t num_rows)¶
-
void
allocateColumnarData
(size_t num_rows)¶
-
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)¶
-
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)¶
-
template<>