OmniSciDB  1dac507f6e
 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 159 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 160 of file ResultSetGeoSerialization.h.

161  {
162  // TODO: add custom ChunkIter accessor able to properly recognize NULL coords
163  // TODO: once NULL geo support is in, add coords NULL check under !notnull
164  // if (!geo_ti.get_notnull() && vals[0]->is_null) {
165  // return GeoTargetValuePtr();
166  // }
167  return GeoPointTargetValuePtr({std::move(vals[0])});
168  }

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