6 #ifndef __FILTER_BY_BOX_GEOMETRY_H__
7 #define __FILTER_BY_BOX_GEOMETRY_H__
39 options(std::map<std::string, std::string>())
80 FilterByBoxGeometryRequest(
const std::string& tableName_,
const std::string& viewName_,
const std::string& columnName_,
const double minX_,
const double maxX_,
const double minY_,
const double maxY_,
const std::map<std::string, std::string>& options_):
99 std::map<std::string, std::string>
options;
105 template<>
struct codec_traits<gpudb::FilterByBoxGeometryRequest>
112 ::avro::encode(e, v.
minX);
113 ::avro::encode(e, v.
maxX);
114 ::avro::encode(e, v.
minY);
115 ::avro::encode(e, v.
maxY);
121 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
123 const std::vector<size_t> fo = rd->fieldOrder();
125 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
142 ::avro::decode(d, v.
minX);
146 ::avro::decode(d, v.
maxX);
150 ::avro::decode(d, v.
minY);
154 ::avro::decode(d, v.
maxY);
171 ::avro::decode(d, v.
minX);
172 ::avro::decode(d, v.
maxX);
173 ::avro::decode(d, v.
minY);
174 ::avro::decode(d, v.
maxY);
205 info(std::map<std::string, std::string>())
210 std::map<std::string, std::string>
info;
216 template<>
struct codec_traits<gpudb::FilterByBoxGeometryResponse>
220 ::avro::encode(e, v.
count);
221 ::avro::encode(e, v.
info);
226 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
228 const std::vector<size_t> fo = rd->fieldOrder();
230 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
235 ::avro::decode(d, v.
count);
239 ::avro::decode(d, v.
info);
249 ::avro::decode(d, v.
count);
250 ::avro::decode(d, v.
info);
std::map< std::string, std::string > info
FilterByBoxGeometryRequest(const std::string &tableName_, const std::string &viewName_, const std::string &columnName_, const double minX_, const double maxX_, const double minY_, const double maxY_, const std::map< std::string, std::string > &options_)
Constructs a FilterByBoxGeometryRequest object with the specified parameters.
FilterByBoxGeometryResponse()
Constructs a FilterByBoxGeometryResponse object with default parameter values.
std::map< std::string, std::string > options
A set of output parameters for const.
A set of input parameters for const.
FilterByBoxGeometryRequest()
Constructs a FilterByBoxGeometryRequest object with default parameter values.