OmniSciDB  c0231cc57d
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GeoTargetValuePtrSerializer< kPOLYGON > Struct Template Reference

#include <ResultSetGeoSerialization.h>

Static Public Member Functions

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

Detailed Description

struct GeoTargetValuePtrSerializer< kPOLYGON >

Definition at line 282 of file ResultSetGeoSerialization.h.

Member Function Documentation

static TargetValue GeoTargetValuePtrSerializer< kPOLYGON >::serialize ( const SQLTypeInfo geo_ti,
std::array< VarlenDatumPtr, 2 > &  vals 

Definition at line 283 of file ResultSetGeoSerialization.h.

References SQLTypeInfo::get_notnull().

284  {
285  if (!geo_ti.get_notnull() && (vals[0]->is_null || vals[1]->is_null)) {
286  // NULL geo
287  // Pass along null datum, instead of an empty/null GeoTargetValuePtr
288  // return GeoTargetValuePtr();
289  }
290  return GeoPolyTargetValuePtr({std::move(vals[0]), std::move(vals[1])});
291  }
HOST DEVICE bool get_notnull() const
Definition: sqltypes.h:411

+ Here is the call graph for this function:

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