GPUdb C++ API  Version 7.2.2.4
aggregate_min_max_geometry.h
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the Kinetica schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 #ifndef __AGGREGATE_MIN_MAX_GEOMETRY_H__
7 #define __AGGREGATE_MIN_MAX_GEOMETRY_H__
8 
9 namespace gpudb
10 {
20  {
26  tableName(std::string()),
27  columnName(std::string()),
28  options(std::map<std::string, std::string>())
29  {
30  }
31 
47  AggregateMinMaxGeometryRequest(const std::string& tableName_, const std::string& columnName_, const std::map<std::string, std::string>& options_):
48  tableName( tableName_ ),
49  columnName( columnName_ ),
50  options( options_ )
51  {
52  }
53 
60  std::string tableName;
61 
66  std::string columnName;
67 
71  std::map<std::string, std::string> options;
72  };
73 } // end namespace gpudb
74 
75 namespace avro
76 {
77  template<> struct codec_traits<gpudb::AggregateMinMaxGeometryRequest>
78  {
79  static void encode(Encoder& e, const gpudb::AggregateMinMaxGeometryRequest& v)
80  {
81  ::avro::encode(e, v.tableName);
82  ::avro::encode(e, v.columnName);
83  ::avro::encode(e, v.options);
84  }
85 
86  static void decode(Decoder& d, gpudb::AggregateMinMaxGeometryRequest& v)
87  {
88  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
89  {
90  const std::vector<size_t> fo = rd->fieldOrder();
91 
92  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
93  {
94  switch (*it)
95  {
96  case 0:
97  ::avro::decode(d, v.tableName);
98  break;
99 
100  case 1:
101  ::avro::decode(d, v.columnName);
102  break;
103 
104  case 2:
105  ::avro::decode(d, v.options);
106  break;
107 
108  default:
109  break;
110  }
111  }
112  }
113  else
114  {
115  ::avro::decode(d, v.tableName);
116  ::avro::decode(d, v.columnName);
117  ::avro::decode(d, v.options);
118  }
119  }
120  };
121 } // end namespace avro
122 
123 namespace gpudb
124 {
131  {
137  minX(double()),
138  maxX(double()),
139  minY(double()),
140  maxY(double()),
141  info(std::map<std::string, std::string>())
142  {
143  }
144 
149  double minX;
150 
155  double maxX;
156 
161  double minY;
162 
167  double maxY;
168 
172  std::map<std::string, std::string> info;
173  };
174 } // end namespace gpudb
175 
176 namespace avro
177 {
178  template<> struct codec_traits<gpudb::AggregateMinMaxGeometryResponse>
179  {
180  static void encode(Encoder& e, const gpudb::AggregateMinMaxGeometryResponse& v)
181  {
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);
187  }
188 
189  static void decode(Decoder& d, gpudb::AggregateMinMaxGeometryResponse& v)
190  {
191  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
192  {
193  const std::vector<size_t> fo = rd->fieldOrder();
194 
195  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
196  {
197  switch (*it)
198  {
199  case 0:
200  ::avro::decode(d, v.minX);
201  break;
202 
203  case 1:
204  ::avro::decode(d, v.maxX);
205  break;
206 
207  case 2:
208  ::avro::decode(d, v.minY);
209  break;
210 
211  case 3:
212  ::avro::decode(d, v.maxY);
213  break;
214 
215  case 4:
216  ::avro::decode(d, v.info);
217  break;
218 
219  default:
220  break;
221  }
222  }
223  }
224  else
225  {
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);
231  }
232  }
233  };
234 } // end namespace avro
235 
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.