OmniSciDB  c0231cc57d
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GeoTargetValuePtrSerializer< kLINESTRING > 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< kLINESTRING >

Definition at line 187 of file ResultSetGeoSerialization.h.

Member Function Documentation

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

Definition at line 188 of file ResultSetGeoSerialization.h.

References SQLTypeInfo::get_notnull().

189  {
190  if (!geo_ti.get_notnull() && vals[0]->is_null) {
191  // NULL geo
192  // Pass along null datum, instead of an empty/null GeoTargetValuePtr
193  // return GeoTargetValuePtr();
194  }
195  return GeoLineStringTargetValuePtr({std::move(vals[0])});
196  }
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: