GPUdb C++ API  Version 7.2.2.4
collect_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 __COLLECT_STATISTICS_H__
7 #define __COLLECT_STATISTICS_H__
8 
9 namespace gpudb
10 {
19  {
25  tableName(std::string()),
26  columnNames(std::vector<std::string>()),
27  options(std::map<std::string, std::string>())
28  {
29  }
30 
46  CollectStatisticsRequest(const std::string& tableName_, const std::vector<std::string>& columnNames_, const std::map<std::string, std::string>& options_):
47  tableName( tableName_ ),
48  columnNames( columnNames_ ),
49  options( options_ )
50  {
51  }
52 
58  std::string tableName;
59 
64  std::vector<std::string> columnNames;
65 
69  std::map<std::string, std::string> options;
70  };
71 } // end namespace gpudb
72 
73 namespace avro
74 {
75  template<> struct codec_traits<gpudb::CollectStatisticsRequest>
76  {
77  static void encode(Encoder& e, const gpudb::CollectStatisticsRequest& v)
78  {
79  ::avro::encode(e, v.tableName);
80  ::avro::encode(e, v.columnNames);
81  ::avro::encode(e, v.options);
82  }
83 
84  static void decode(Decoder& d, gpudb::CollectStatisticsRequest& v)
85  {
86  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
87  {
88  const std::vector<size_t> fo = rd->fieldOrder();
89 
90  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
91  {
92  switch (*it)
93  {
94  case 0:
95  ::avro::decode(d, v.tableName);
96  break;
97 
98  case 1:
99  ::avro::decode(d, v.columnNames);
100  break;
101 
102  case 2:
103  ::avro::decode(d, v.options);
104  break;
105 
106  default:
107  break;
108  }
109  }
110  }
111  else
112  {
113  ::avro::decode(d, v.tableName);
114  ::avro::decode(d, v.columnNames);
115  ::avro::decode(d, v.options);
116  }
117  }
118  };
119 } // end namespace avro
120 
121 namespace gpudb
122 {
129  {
135  tableName(std::string()),
136  columnNames(std::vector<std::string>()),
137  info(std::map<std::string, std::string>())
138  {
139  }
140 
145  std::string tableName;
146 
151  std::vector<std::string> columnNames;
152 
156  std::map<std::string, std::string> info;
157  };
158 } // end namespace gpudb
159 
160 namespace avro
161 {
162  template<> struct codec_traits<gpudb::CollectStatisticsResponse>
163  {
164  static void encode(Encoder& e, const gpudb::CollectStatisticsResponse& v)
165  {
166  ::avro::encode(e, v.tableName);
167  ::avro::encode(e, v.columnNames);
168  ::avro::encode(e, v.info);
169  }
170 
171  static void decode(Decoder& d, gpudb::CollectStatisticsResponse& v)
172  {
173  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
174  {
175  const std::vector<size_t> fo = rd->fieldOrder();
176 
177  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
178  {
179  switch (*it)
180  {
181  case 0:
182  ::avro::decode(d, v.tableName);
183  break;
184 
185  case 1:
186  ::avro::decode(d, v.columnNames);
187  break;
188 
189  case 2:
190  ::avro::decode(d, v.info);
191  break;
192 
193  default:
194  break;
195  }
196  }
197  }
198  else
199  {
200  ::avro::decode(d, v.tableName);
201  ::avro::decode(d, v.columnNames);
202  ::avro::decode(d, v.info);
203  }
204  }
205  };
206 } // end namespace avro
207 
208 #endif // __COLLECT_STATISTICS_H__
std::map< std::string, std::string > info
Additional information.
A set of results returned by GPUdb::collectStatistics.
std::vector< std::string > columnNames
Value of columnNames.
CollectStatisticsRequest(const std::string &tableName_, const std::vector< std::string > &columnNames_, const std::map< std::string, std::string > &options_)
Constructs a CollectStatisticsRequest object with the specified parameters.
std::string tableName
Name of a table, in [ schema_name. ]table_name format, using standard name resolution rules.
A set of parameters for GPUdb::collectStatistics.
CollectStatisticsRequest()
Constructs a CollectStatisticsRequest object with default parameters.
CollectStatisticsResponse()
Constructs a CollectStatisticsResponse object with default parameters.
std::string tableName
Value of tableName.
std::vector< std::string > columnNames
List of one or more column names in tableName for which to collect statistics (cardinality,...
std::map< std::string, std::string > options
Optional parameters.