24 namespace Geospatial {
26 std::shared_ptr<Analyzer::Constant>
convert_coords(
const std::vector<double>& coords,
29 std::list<std::shared_ptr<Analyzer::Expr>> compressed_coords_exprs;
30 for (
auto cc : compressed_coords) {
33 auto e = makeExpr<Analyzer::Constant>(
kTINYINT,
false, d);
34 compressed_coords_exprs.push_back(e);
38 arr_ti.
set_size(compressed_coords.size() *
sizeof(int8_t));
41 return makeExpr<Analyzer::Constant>(arr_ti,
false, compressed_coords_exprs);
44 std::shared_ptr<Analyzer::Constant>
convert_rings(
const std::vector<int>& rings) {
45 std::list<std::shared_ptr<Analyzer::Expr>> ring_size_exprs;
46 for (
auto c : rings) {
49 auto e = makeExpr<Analyzer::Constant>(
kINT,
false, d);
50 ring_size_exprs.push_back(e);
54 arr_ti.
set_size(rings.size() *
sizeof(int32_t));
55 return makeExpr<Analyzer::Constant>(arr_ti,
false, ring_size_exprs);
Defines data structures for the semantic analysis phase of query processing.
void set_compression(EncodingType c)
HOST DEVICE void set_subtype(SQLTypes st)
std::vector< uint8_t > compress_coords(const std::vector< double > &coords, const SQLTypeInfo &ti)
std::shared_ptr< Analyzer::Constant > convert_rings(const std::vector< int > &rings)
void set_comp_param(int p)
HOST DEVICE EncodingType get_compression() const
std::shared_ptr< Analyzer::Constant > convert_coords(const std::vector< double > &coords, const SQLTypeInfo &ti)