OmniSciDB  8a228a1076
GeoTargetValuePtrSerializer< kMULTIPOLYGON > Struct Template Reference

#include <ResultSetGeoSerialization.h>

Static Public Member Functions

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

Detailed Description

template<>
struct GeoTargetValuePtrSerializer< kMULTIPOLYGON >

Definition at line 249 of file ResultSetGeoSerialization.h.

Member Function Documentation

◆ serialize()

static TargetValue GeoTargetValuePtrSerializer< kMULTIPOLYGON >::serialize ( const SQLTypeInfo geo_ti,
std::array< VarlenDatumPtr, 3 > &  vals 
)
inlinestatic

Definition at line 250 of file ResultSetGeoSerialization.h.

References SQLTypeInfo::get_notnull().

251  {
252  if (!geo_ti.get_notnull() &&
253  (vals[0]->is_null || vals[1]->is_null || vals[2]->is_null)) {
254  // NULL geo
255  // Pass along null datum, instead of an empty/null GeoTargetValuePtr
256  // return GeoTargetValuePtr();
257  }
259  {std::move(vals[0]), std::move(vals[1]), std::move(vals[2])});
260  }
HOST DEVICE bool get_notnull() const
Definition: sqltypes.h:266
+ Here is the call graph for this function:

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