OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 337 of file ResultSetGeoSerialization.h.

Member Function Documentation

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

Definition at line 338 of file ResultSetGeoSerialization.h.

References SQLTypeInfo::get_notnull().

339  {
340  if (!geo_ti.get_notnull() &&
341  (vals[0]->is_null || vals[1]->is_null || vals[2]->is_null)) {
342  // NULL geo
343  // Pass along null datum, instead of an empty/null GeoTargetValuePtr
344  // return GeoTargetValuePtr();
345  }
347  {std::move(vals[0]), std::move(vals[1]), std::move(vals[2])});
348  }
HOST DEVICE bool get_notnull() const
Definition: sqltypes.h:398

+ Here is the call graph for this function:


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