OmniSciDB  dfae7c3b14
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

template<>
struct GeoTargetValuePtrSerializer< kPOLYGON >

Definition at line 194 of file ResultSetGeoSerialization.h.

Member Function Documentation

◆ serialize()

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

Definition at line 195 of file ResultSetGeoSerialization.h.

References SQLTypeInfo::get_notnull().

196  {
197  if (!geo_ti.get_notnull() && (vals[0]->is_null || vals[1]->is_null)) {
198  // NULL geo
199  // Pass along null datum, instead of an empty/null GeoTargetValuePtr
200  // return GeoTargetValuePtr();
201  }
202  return GeoPolyTargetValuePtr({std::move(vals[0]), std::move(vals[1])});
203  }
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: