GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
aggregate_min_max_geometry.h
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the GPUdb 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 {
11 
20  {
21 
27  tableName(std::string()),
28  columnName(std::string()),
29  options(std::map<std::string, std::string>())
30  {
31  }
32 
48  AggregateMinMaxGeometryRequest(const std::string& tableName_, const std::string& columnName_, const std::map<std::string, std::string>& options_):
49  tableName( tableName_ ),
50  columnName( columnName_ ),
51  options( options_ )
52  {
53  }
54 
55  std::string tableName;
56  std::string columnName;
57  std::map<std::string, std::string> options;
58  };
59 }
60 
61 namespace avro
62 {
63  template<> struct codec_traits<gpudb::AggregateMinMaxGeometryRequest>
64  {
65  static void encode(Encoder& e, const gpudb::AggregateMinMaxGeometryRequest& v)
66  {
67  ::avro::encode(e, v.tableName);
68  ::avro::encode(e, v.columnName);
69  ::avro::encode(e, v.options);
70  }
71 
72  static void decode(Decoder& d, gpudb::AggregateMinMaxGeometryRequest& v)
73  {
74  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
75  {
76  const std::vector<size_t> fo = rd->fieldOrder();
77 
78  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
79  {
80  switch (*it)
81  {
82  case 0:
83  ::avro::decode(d, v.tableName);
84  break;
85 
86  case 1:
87  ::avro::decode(d, v.columnName);
88  break;
89 
90  case 2:
91  ::avro::decode(d, v.options);
92  break;
93 
94  default:
95  break;
96  }
97  }
98  }
99  else
100  {
101  ::avro::decode(d, v.tableName);
102  ::avro::decode(d, v.columnName);
103  ::avro::decode(d, v.options);
104  }
105  }
106  };
107 }
108 
109 namespace gpudb
110 {
111 
120  {
121 
127  minX(double()),
128  maxX(double()),
129  minY(double()),
130  maxY(double()),
131  info(std::map<std::string, std::string>())
132  {
133  }
134 
135  double minX;
136  double maxX;
137  double minY;
138  double maxY;
139  std::map<std::string, std::string> info;
140  };
141 }
142 
143 namespace avro
144 {
145  template<> struct codec_traits<gpudb::AggregateMinMaxGeometryResponse>
146  {
147  static void encode(Encoder& e, const gpudb::AggregateMinMaxGeometryResponse& v)
148  {
149  ::avro::encode(e, v.minX);
150  ::avro::encode(e, v.maxX);
151  ::avro::encode(e, v.minY);
152  ::avro::encode(e, v.maxY);
153  ::avro::encode(e, v.info);
154  }
155 
156  static void decode(Decoder& d, gpudb::AggregateMinMaxGeometryResponse& v)
157  {
158  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
159  {
160  const std::vector<size_t> fo = rd->fieldOrder();
161 
162  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
163  {
164  switch (*it)
165  {
166  case 0:
167  ::avro::decode(d, v.minX);
168  break;
169 
170  case 1:
171  ::avro::decode(d, v.maxX);
172  break;
173 
174  case 2:
175  ::avro::decode(d, v.minY);
176  break;
177 
178  case 3:
179  ::avro::decode(d, v.maxY);
180  break;
181 
182  case 4:
183  ::avro::decode(d, v.info);
184  break;
185 
186  default:
187  break;
188  }
189  }
190  }
191  else
192  {
193  ::avro::decode(d, v.minX);
194  ::avro::decode(d, v.maxX);
195  ::avro::decode(d, v.minY);
196  ::avro::decode(d, v.maxY);
197  ::avro::decode(d, v.info);
198  }
199  }
200  };
201 }
202 
203 #endif
AggregateMinMaxGeometryResponse()
Constructs an AggregateMinMaxGeometryResponse object with default parameter values.
std::map< std::string, std::string > info
A set of output parameters for const.
AggregateMinMaxGeometryRequest()
Constructs an AggregateMinMaxGeometryRequest object with default parameter values.
A set of input parameters for const.
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.
std::map< std::string, std::string > options