OmniSciDB  04ee39c94c
GeoTargetValueSerializer< kPOINT > Struct Template Reference

#include <ResultSetGeoSerialization.h>

Static Public Member Functions

static TargetValue serialize (const SQLTypeInfo &geo_ti, std::array< VarlenDatumPtr, 1 > &vals)

Detailed Description

struct GeoTargetValueSerializer< kPOINT >

Definition at line 127 of file ResultSetGeoSerialization.h.

Member Function Documentation

◆ serialize()

static TargetValue GeoTargetValueSerializer< kPOINT >::serialize ( const SQLTypeInfo geo_ti,
std::array< VarlenDatumPtr, 1 > &  vals 

Definition at line 128 of file ResultSetGeoSerialization.h.

References anonymous_namespace{ResultSetGeoSerialization.h}::decompress_coords< double >(), and anonymous_namespace{TypedDataAccessors.h}::is_null().

129  {
130  if (vals[0]->is_null) {
131  return GeoPointTargetValue(std::vector<double>{});
132  }
133  return GeoPointTargetValue(
134  *decompress_coords<double>(geo_ti, vals[0]->pointer, vals[0]->length));
135  }
std::shared_ptr< std::vector< double > > decompress_coords< double >(const SQLTypeInfo &geo_ti, const int8_t *coords, const size_t coords_sz)
bool is_null(const T &v, const SQLTypeInfo &t)
+ Here is the call graph for this function:

The documentation for this struct was generated from the following file: