21 namespace foreign_storage {
26 std::list<std::unique_ptr<ChunkMetadata>>& chunk_metadata,
27 const bool is_error_tracking_enabled,
29 const bool geo_validate_geometry)
34 void appendData(
const std::vector<std::string>& geo_strings,
35 std::optional<std::set<size_t>>& rejected_row_local_indices) {
37 CHECK(rejected_row_local_indices.has_value());
40 int64_t num_rows = geo_strings.size();
41 for (int64_t i = 0; i < num_rows; ++i) {
43 auto const& geo_string = geo_strings[i];
44 if (geo_string.size()) {
47 }
catch (
const std::runtime_error& except) {
49 rejected_row_local_indices->insert(i);
59 rejected_row_local_indices->insert(i);
void processNullGeoElement()
const bool is_error_tracking_enabled_
OdbcGeospatialEncoder(std::list< Chunk_NS::Chunk > &chunks, std::list< std::unique_ptr< ChunkMetadata >> &chunk_metadata, const bool is_error_tracking_enabled, const SQLTypeInfo &sql_type_info, const bool geo_validate_geometry)
void appendArrayDatumsToBufferAndUpdateMetadata()
void processGeoElement(std::string_view geo_string_view)
const SQLTypeInfo type_info_
void appendBaseDataAndUpdateMetadata(const int64_t row_count)
HOST DEVICE bool get_notnull() const
void appendData(const std::vector< std::string > &geo_strings, std::optional< std::set< size_t >> &rejected_row_local_indices)