GPUdb C++ API  Version 7.2.2.4
clear_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 __CLEAR_STATISTICS_H__
7 #define __CLEAR_STATISTICS_H__
8 
9 namespace gpudb
10 {
20  {
25  tableName(std::string()),
26  columnName(std::string()),
27  options(std::map<std::string, std::string>())
28  {
29  }
30 
49  ClearStatisticsRequest(const std::string& tableName_, const std::string& columnName_, const std::map<std::string, std::string>& options_):
50  tableName( tableName_ ),
51  columnName( columnName_ ),
52  options( options_ )
53  {
54  }
55 
62  std::string tableName;
63 
69  std::string columnName;
70 
74  std::map<std::string, std::string> options;
75  };
76 } // end namespace gpudb
77 
78 namespace avro
79 {
80  template<> struct codec_traits<gpudb::ClearStatisticsRequest>
81  {
82  static void encode(Encoder& e, const gpudb::ClearStatisticsRequest& v)
83  {
84  ::avro::encode(e, v.tableName);
85  ::avro::encode(e, v.columnName);
86  ::avro::encode(e, v.options);
87  }
88 
89  static void decode(Decoder& d, gpudb::ClearStatisticsRequest& v)
90  {
91  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
92  {
93  const std::vector<size_t> fo = rd->fieldOrder();
94 
95  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
96  {
97  switch (*it)
98  {
99  case 0:
100  ::avro::decode(d, v.tableName);
101  break;
102 
103  case 1:
104  ::avro::decode(d, v.columnName);
105  break;
106 
107  case 2:
108  ::avro::decode(d, v.options);
109  break;
110 
111  default:
112  break;
113  }
114  }
115  }
116  else
117  {
118  ::avro::decode(d, v.tableName);
119  ::avro::decode(d, v.columnName);
120  ::avro::decode(d, v.options);
121  }
122  }
123  };
124 } // end namespace avro
125 
126 namespace gpudb
127 {
134  {
139  tableName(std::string()),
140  columnName(std::string()),
141  info(std::map<std::string, std::string>())
142  {
143  }
144 
148  std::string tableName;
149 
154  std::string columnName;
155 
159  std::map<std::string, std::string> info;
160  };
161 } // end namespace gpudb
162 
163 namespace avro
164 {
165  template<> struct codec_traits<gpudb::ClearStatisticsResponse>
166  {
167  static void encode(Encoder& e, const gpudb::ClearStatisticsResponse& v)
168  {
169  ::avro::encode(e, v.tableName);
170  ::avro::encode(e, v.columnName);
171  ::avro::encode(e, v.info);
172  }
173 
174  static void decode(Decoder& d, gpudb::ClearStatisticsResponse& v)
175  {
176  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
177  {
178  const std::vector<size_t> fo = rd->fieldOrder();
179 
180  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
181  {
182  switch (*it)
183  {
184  case 0:
185  ::avro::decode(d, v.tableName);
186  break;
187 
188  case 1:
189  ::avro::decode(d, v.columnName);
190  break;
191 
192  case 2:
193  ::avro::decode(d, v.info);
194  break;
195 
196  default:
197  break;
198  }
199  }
200  }
201  else
202  {
203  ::avro::decode(d, v.tableName);
204  ::avro::decode(d, v.columnName);
205  ::avro::decode(d, v.info);
206  }
207  }
208  };
209 } // end namespace avro
210 
211 #endif // __CLEAR_STATISTICS_H__
ClearStatisticsRequest(const std::string &tableName_, const std::string &columnName_, const std::map< std::string, std::string > &options_)
Constructs a ClearStatisticsRequest object with the specified parameters.
ClearStatisticsResponse()
Constructs a ClearStatisticsResponse object with default parameters.
A set of results returned by GPUdb::clearStatistics.
std::string columnName
Value of columnName.
std::map< std::string, std::string > info
Additional information.
A set of parameters for GPUdb::clearStatistics.
std::map< std::string, std::string > options
Optional parameters.
std::string columnName
Name of the column in tableName for which to clear statistics.
ClearStatisticsRequest()
Constructs a ClearStatisticsRequest object with default parameters.
std::string tableName
Value of tableName.
std::string tableName
Name of a table, in [ schema_name. ]table_name format, using standard name resolution rules.