OmniSciDB  06b3bd477c
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GeoTargetValuePtrSerializer< kPOINT > 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< kPOINT >

Definition at line 106 of file ResultSetGeoSerialization.h.

Member Function Documentation

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

Definition at line 107 of file ResultSetGeoSerialization.h.

References SQLTypeInfo::get_notnull().

108  {
109  if (!geo_ti.get_notnull() && vals[0]->is_null) {
110  // NULL geo
111  // Pass along null datum, instead of an empty/null GeoTargetValuePtr
112  // return GeoTargetValuePtr();
113  }
114  return GeoPointTargetValuePtr({std::move(vals[0])});
115  }
HOST DEVICE bool get_notnull() const
Definition: sqltypes.h:265

+ Here is the call graph for this function:


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