OmniSciDB
a5dc49c757
|
#include <TargetValueConvertersImpl.h>
Public Member Functions | |
GeoPointValueConverter (const Catalog_Namespace::Catalog &cat, size_t num_rows, const ColumnDescriptor *logicalColumnDescriptor) | |
~GeoPointValueConverter () override | |
void | allocateColumnarData (size_t num_rows) override |
ArrayDatum | toCompressedCoords (const std::shared_ptr< std::vector< double >> &coords) |
void | convertToColumnarFormat (size_t row, const TargetValue *value) override |
void | addDataBlocksToInsertData (Fragmenter_Namespace::InsertData &insertData) override |
Public Member Functions inherited from TargetValueConverter | |
TargetValueConverter (const ColumnDescriptor *cd) | |
virtual | ~TargetValueConverter () |
virtual void | finalizeDataBlocksForInsertData () |
Public Attributes | |
const ColumnDescriptor * | coords_column_descriptor_ |
std::unique_ptr< std::vector < std::string > > | column_data_ |
std::unique_ptr< std::vector < ArrayDatum > > | signed_compressed_coords_data_ |
boost_variant_accessor < GeoTargetValue > | GEO_VALUE_ACCESSOR |
boost_variant_accessor < GeoPointTargetValue > | GEO_POINT_VALUE_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 623 of file TargetValueConvertersImpl.h.
|
inline |
Definition at line 629 of file TargetValueConvertersImpl.h.
References allocateColumnarData(), CHECK, TargetValueConverter::column_descriptor_, ColumnDescriptor::columnId, coords_column_descriptor_, Catalog_Namespace::Catalog::getMetadataForColumn(), and ColumnDescriptor::tableId.
|
inlineoverride |
Definition at line 642 of file TargetValueConvertersImpl.h.
|
inlineoverridevirtual |
Implements TargetValueConverter.
Reimplemented in GeoMultiPolygonValueConverter, GeoPolygonValueConverter, GeoMultiLinestringValueConverter, GeoLinestringValueConverter, and GeoMultiPointValueConverter.
Definition at line 691 of file TargetValueConvertersImpl.h.
References DataBlockPtr::arraysPtr, column_data_, TargetValueConverter::column_descriptor_, ColumnDescriptor::columnId, Fragmenter_Namespace::InsertData::columnIds, coords_column_descriptor_, Fragmenter_Namespace::InsertData::data, signed_compressed_coords_data_, and DataBlockPtr::stringsPtr.
Referenced by GeoMultiPointValueConverter::addDataBlocksToInsertData(), GeoLinestringValueConverter::addDataBlocksToInsertData(), GeoMultiLinestringValueConverter::addDataBlocksToInsertData(), GeoPolygonValueConverter::addDataBlocksToInsertData(), and GeoMultiPolygonValueConverter::addDataBlocksToInsertData().
|
inlineoverridevirtual |
Implements TargetValueConverter.
Reimplemented in GeoMultiPolygonValueConverter, GeoPolygonValueConverter, GeoMultiLinestringValueConverter, GeoLinestringValueConverter, and GeoMultiPointValueConverter.
Definition at line 644 of file TargetValueConvertersImpl.h.
References CHECK, column_data_, and signed_compressed_coords_data_.
Referenced by GeoMultiPointValueConverter::allocateColumnarData(), GeoLinestringValueConverter::allocateColumnarData(), GeoMultiLinestringValueConverter::allocateColumnarData(), GeoPolygonValueConverter::allocateColumnarData(), GeoMultiPolygonValueConverter::allocateColumnarData(), and GeoPointValueConverter().
|
inlineoverridevirtual |
Implements TargetValueConverter.
Reimplemented in GeoMultiPolygonValueConverter, GeoPolygonValueConverter, GeoMultiLinestringValueConverter, GeoLinestringValueConverter, and GeoMultiPointValueConverter.
Definition at line 669 of file TargetValueConvertersImpl.h.
References CHECK, GEO_POINT_VALUE_ACCESSOR, GEO_VALUE_ACCESSOR, NULL_ARRAY_DOUBLE, NULL_DOUBLE, and toCompressedCoords().
|
inline |
Definition at line 653 of file TargetValueConvertersImpl.h.
References checked_malloc(), TargetValueConverter::column_descriptor_, ColumnDescriptor::columnType, and Geospatial::compress_coords().
Referenced by convertToColumnarFormat(), GeoMultiPointValueConverter::convertToColumnarFormat(), GeoLinestringValueConverter::convertToColumnarFormat(), GeoMultiLinestringValueConverter::convertToColumnarFormat(), GeoPolygonValueConverter::convertToColumnarFormat(), and GeoMultiPolygonValueConverter::convertToColumnarFormat().
std::unique_ptr<std::vector<std::string> > GeoPointValueConverter::column_data_ |
Definition at line 626 of file TargetValueConvertersImpl.h.
Referenced by addDataBlocksToInsertData(), and allocateColumnarData().
const ColumnDescriptor* GeoPointValueConverter::coords_column_descriptor_ |
Definition at line 624 of file TargetValueConvertersImpl.h.
Referenced by addDataBlocksToInsertData(), and GeoPointValueConverter().
boost_variant_accessor<GeoPointTargetValue> GeoPointValueConverter::GEO_POINT_VALUE_ACCESSOR |
Definition at line 651 of file TargetValueConvertersImpl.h.
Referenced by convertToColumnarFormat().
boost_variant_accessor<GeoTargetValue> GeoPointValueConverter::GEO_VALUE_ACCESSOR |
Definition at line 650 of file TargetValueConvertersImpl.h.
Referenced by convertToColumnarFormat().
std::unique_ptr<std::vector<ArrayDatum> > GeoPointValueConverter::signed_compressed_coords_data_ |
Definition at line 627 of file TargetValueConvertersImpl.h.
Referenced by addDataBlocksToInsertData(), and allocateColumnarData().