6 #ifndef __AGGREGATE_MIN_MAX_GEOMETRY_H__ 7 #define __AGGREGATE_MIN_MAX_GEOMETRY_H__ 28 options(std::map<std::string, std::string>())
71 std::map<std::string, std::string>
options;
77 template<>
struct codec_traits<
gpudb::AggregateMinMaxGeometryRequest>
88 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
90 const std::vector<size_t> fo = rd->fieldOrder();
92 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
141 info(std::map<std::string, std::string>())
172 std::map<std::string, std::string>
info;
178 template<>
struct codec_traits<
gpudb::AggregateMinMaxGeometryResponse>
182 ::avro::encode(e, v.
minX);
183 ::avro::encode(e, v.
maxX);
184 ::avro::encode(e, v.
minY);
185 ::avro::encode(e, v.
maxY);
186 ::avro::encode(e, v.
info);
191 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
193 const std::vector<size_t> fo = rd->fieldOrder();
195 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
200 ::avro::decode(d, v.
minX);
204 ::avro::decode(d, v.
maxX);
208 ::avro::decode(d, v.
minY);
212 ::avro::decode(d, v.
maxY);
216 ::avro::decode(d, v.
info);
226 ::avro::decode(d, v.
minX);
227 ::avro::decode(d, v.
maxX);
228 ::avro::decode(d, v.
minY);
229 ::avro::decode(d, v.
maxY);
230 ::avro::decode(d, v.
info);
236 #endif // __AGGREGATE_MIN_MAX_GEOMETRY_H__ AggregateMinMaxGeometryResponse()
Constructs an AggregateMinMaxGeometryResponse object with default parameters.
double maxX
Maximum x-coordinate value of the columnName.
std::map< std::string, std::string > info
Additional information.
A set of results returned by GPUdb::aggregateMinMaxGeometry.
AggregateMinMaxGeometryRequest()
Constructs an AggregateMinMaxGeometryRequest object with default parameters.
A set of parameters for GPUdb::aggregateMinMaxGeometry.
AggregateMinMaxGeometryRequest(const std::string &tableName_, const std::string &columnName_, const std::map< std::string, std::string > &options_)
Constructs an AggregateMinMaxGeometryRequest object with the specified parameters.
double minX
Minimum x-coordinate value of the columnName.
std::map< std::string, std::string > options
Optional parameters.
std::string columnName
Name of a geospatial geometry column on which the min-max will be calculated.
double minY
Minimum y-coordinate value of the columnName.
double maxY
Maximum y-coordinate value of the columnName.
std::string tableName
Name of the table on which the operation will be performed.