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

#include <ResultSetGeoSerialization.h>

Static Public Member Functions

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

Detailed Description

template<>
struct GeoTargetValuePtrSerializer< kMULTIPOINT >

Definition at line 146 of file ResultSetGeoSerialization.h.

Member Function Documentation

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

Definition at line 147 of file ResultSetGeoSerialization.h.

References SQLTypeInfo::get_notnull().

148  {
149  if (!geo_ti.get_notnull() && vals[0]->is_null) {
150  // NULL geo
151  // Pass along null datum, instead of an empty/null GeoTargetValuePtr
152  // return GeoTargetValuePtr();
153  }
154  return GeoMultiPointTargetValuePtr({std::move(vals[0])});
155  }
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: