GPUdb C++ API  Version 7.2.2.4
show_statistics.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 __SHOW_STATISTICS_H__
7 #define __SHOW_STATISTICS_H__
8 
9 namespace gpudb
10 {
19  {
24  tableNames(std::vector<std::string>()),
25  options(std::map<std::string, std::string>())
26  {
27  }
28 
68  ShowStatisticsRequest(const std::vector<std::string>& tableNames_, const std::map<std::string, std::string>& options_):
69  tableNames( tableNames_ ),
70  options( options_ )
71  {
72  }
73 
81  std::vector<std::string> tableNames;
82 
105  std::map<std::string, std::string> options;
106  };
107 } // end namespace gpudb
108 
109 namespace avro
110 {
111  template<> struct codec_traits<gpudb::ShowStatisticsRequest>
112  {
113  static void encode(Encoder& e, const gpudb::ShowStatisticsRequest& v)
114  {
115  ::avro::encode(e, v.tableNames);
116  ::avro::encode(e, v.options);
117  }
118 
119  static void decode(Decoder& d, gpudb::ShowStatisticsRequest& v)
120  {
121  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
122  {
123  const std::vector<size_t> fo = rd->fieldOrder();
124 
125  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
126  {
127  switch (*it)
128  {
129  case 0:
130  ::avro::decode(d, v.tableNames);
131  break;
132 
133  case 1:
134  ::avro::decode(d, v.options);
135  break;
136 
137  default:
138  break;
139  }
140  }
141  }
142  else
143  {
144  ::avro::decode(d, v.tableNames);
145  ::avro::decode(d, v.options);
146  }
147  }
148  };
149 } // end namespace avro
150 
151 namespace gpudb
152 {
159  {
164  tableNames(std::vector<std::string>()),
165  stastisticsMap(std::vector<std::vector<std::map<std::string, std::string> > >()),
166  info(std::map<std::string, std::string>())
167  {
168  }
169 
173  std::vector<std::string> tableNames;
174 
179  std::vector<std::vector<std::map<std::string, std::string> > > stastisticsMap;
180 
184  std::map<std::string, std::string> info;
185  };
186 } // end namespace gpudb
187 
188 namespace avro
189 {
190  template<> struct codec_traits<gpudb::ShowStatisticsResponse>
191  {
192  static void encode(Encoder& e, const gpudb::ShowStatisticsResponse& v)
193  {
194  ::avro::encode(e, v.tableNames);
195  ::avro::encode(e, v.stastisticsMap);
196  ::avro::encode(e, v.info);
197  }
198 
199  static void decode(Decoder& d, gpudb::ShowStatisticsResponse& v)
200  {
201  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
202  {
203  const std::vector<size_t> fo = rd->fieldOrder();
204 
205  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
206  {
207  switch (*it)
208  {
209  case 0:
210  ::avro::decode(d, v.tableNames);
211  break;
212 
213  case 1:
214  ::avro::decode(d, v.stastisticsMap);
215  break;
216 
217  case 2:
218  ::avro::decode(d, v.info);
219  break;
220 
221  default:
222  break;
223  }
224  }
225  }
226  else
227  {
228  ::avro::decode(d, v.tableNames);
229  ::avro::decode(d, v.stastisticsMap);
230  ::avro::decode(d, v.info);
231  }
232  }
233  };
234 } // end namespace avro
235 
236 #endif // __SHOW_STATISTICS_H__
A set of parameters for GPUdb::showStatistics.
ShowStatisticsRequest(const std::vector< std::string > &tableNames_, const std::map< std::string, std::string > &options_)
Constructs a ShowStatisticsRequest object with the specified parameters.
std::vector< std::string > tableNames
Value of tableNames.
std::vector< std::vector< std::map< std::string, std::string > > > stastisticsMap
A list of maps which contain the column statistics of the table tableNames.
ShowStatisticsRequest()
Constructs a ShowStatisticsRequest object with default parameters.
ShowStatisticsResponse()
Constructs a ShowStatisticsResponse object with default parameters.
std::map< std::string, std::string > options
Optional parameters.
A set of results returned by GPUdb::showStatistics.
std::vector< std::string > tableNames
Names of tables whose metadata will be fetched, each in [ schema_name. ]table_name format,...
std::map< std::string, std::string > info
Additional information.