24 namespace Geospatial {
34 const size_t coords_sz);
41 void unpack_geo_vector(std::vector<T>& output,
const int8_t* input_ptr,
const size_t sz);
43 template <
typename T,
typename C>
46 const size_t coords_sz);
int32_t get_compression_scheme(const SQLTypeInfo &ti)
bool is_null_point(const SQLTypeInfo &geo_ti, const int8_t *coords, const size_t coords_sz)
Constants for Builtin SQL Types supported by HEAVY.AI.
DEVICE ALWAYS_INLINE Point2D coord(const int8_t *data, const int32_t x_index, const int32_t ic, const int32_t isr, const int32_t osr)
std::vector< uint8_t > compress_coords(const std::vector< double > &coords, const SQLTypeInfo &ti)
std::shared_ptr< std::vector< T > > decompress_coords(const C &compression, const int8_t *coords, const size_t coords_sz)
uint64_t compress_coord(double coord, const SQLTypeInfo &ti, bool x)
uint64_t compress_null_point(const SQLTypeInfo &ti, bool x)
void unpack_geo_vector(std::vector< T > &output, const int8_t *input_ptr, const size_t sz)