GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
clear_statistics.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 __CLEAR_STATISTICS_H__
7 #define __CLEAR_STATISTICS_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 
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 
56  std::string tableName;
57  std::string columnName;
58  std::map<std::string, std::string> options;
59  };
60 }
61 
62 namespace avro
63 {
64  template<> struct codec_traits<gpudb::ClearStatisticsRequest>
65  {
66  static void encode(Encoder& e, const gpudb::ClearStatisticsRequest& v)
67  {
68  ::avro::encode(e, v.tableName);
69  ::avro::encode(e, v.columnName);
70  ::avro::encode(e, v.options);
71  }
72 
73  static void decode(Decoder& d, gpudb::ClearStatisticsRequest& v)
74  {
75  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
76  {
77  const std::vector<size_t> fo = rd->fieldOrder();
78 
79  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
80  {
81  switch (*it)
82  {
83  case 0:
84  ::avro::decode(d, v.tableName);
85  break;
86 
87  case 1:
88  ::avro::decode(d, v.columnName);
89  break;
90 
91  case 2:
92  ::avro::decode(d, v.options);
93  break;
94 
95  default:
96  break;
97  }
98  }
99  }
100  else
101  {
102  ::avro::decode(d, v.tableName);
103  ::avro::decode(d, v.columnName);
104  ::avro::decode(d, v.options);
105  }
106  }
107  };
108 }
109 
110 namespace gpudb
111 {
112 
121  {
122 
128  tableName(std::string()),
129  columnName(std::string()),
130  info(std::map<std::string, std::string>())
131  {
132  }
133 
134  std::string tableName;
135  std::string columnName;
136  std::map<std::string, std::string> info;
137  };
138 }
139 
140 namespace avro
141 {
142  template<> struct codec_traits<gpudb::ClearStatisticsResponse>
143  {
144  static void encode(Encoder& e, const gpudb::ClearStatisticsResponse& v)
145  {
146  ::avro::encode(e, v.tableName);
147  ::avro::encode(e, v.columnName);
148  ::avro::encode(e, v.info);
149  }
150 
151  static void decode(Decoder& d, gpudb::ClearStatisticsResponse& v)
152  {
153  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
154  {
155  const std::vector<size_t> fo = rd->fieldOrder();
156 
157  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
158  {
159  switch (*it)
160  {
161  case 0:
162  ::avro::decode(d, v.tableName);
163  break;
164 
165  case 1:
166  ::avro::decode(d, v.columnName);
167  break;
168 
169  case 2:
170  ::avro::decode(d, v.info);
171  break;
172 
173  default:
174  break;
175  }
176  }
177  }
178  else
179  {
180  ::avro::decode(d, v.tableName);
181  ::avro::decode(d, v.columnName);
182  ::avro::decode(d, v.info);
183  }
184  }
185  };
186 }
187 
188 #endif
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 parameter values.
A set of output parameters for const.
std::map< std::string, std::string > info
A set of input parameters for const.
std::map< std::string, std::string > options
ClearStatisticsRequest()
Constructs a ClearStatisticsRequest object with default parameter values.