GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
clear_table.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_TABLE_H__
7 #define __CLEAR_TABLE_H__
8 
9 namespace gpudb
10 {
11 
24  {
25 
30  tableName(std::string()),
31  authorization(std::string()),
32  options(std::map<std::string, std::string>())
33  {
34  }
35 
67  ClearTableRequest(const std::string& tableName_, const std::string& authorization_, const std::map<std::string, std::string>& options_):
68  tableName( tableName_ ),
69  authorization( authorization_ ),
70  options( options_ )
71  {
72  }
73 
74  std::string tableName;
75  std::string authorization;
76  std::map<std::string, std::string> options;
77  };
78 }
79 
80 namespace avro
81 {
82  template<> struct codec_traits<gpudb::ClearTableRequest>
83  {
84  static void encode(Encoder& e, const gpudb::ClearTableRequest& v)
85  {
86  ::avro::encode(e, v.tableName);
87  ::avro::encode(e, v.authorization);
88  ::avro::encode(e, v.options);
89  }
90 
91  static void decode(Decoder& d, gpudb::ClearTableRequest& v)
92  {
93  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
94  {
95  const std::vector<size_t> fo = rd->fieldOrder();
96 
97  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
98  {
99  switch (*it)
100  {
101  case 0:
102  ::avro::decode(d, v.tableName);
103  break;
104 
105  case 1:
106  ::avro::decode(d, v.authorization);
107  break;
108 
109  case 2:
110  ::avro::decode(d, v.options);
111  break;
112 
113  default:
114  break;
115  }
116  }
117  }
118  else
119  {
120  ::avro::decode(d, v.tableName);
121  ::avro::decode(d, v.authorization);
122  ::avro::decode(d, v.options);
123  }
124  }
125  };
126 }
127 
128 namespace gpudb
129 {
130 
143  {
144 
150  tableName(std::string()),
151  info(std::map<std::string, std::string>())
152  {
153  }
154 
155  std::string tableName;
156  std::map<std::string, std::string> info;
157  };
158 }
159 
160 namespace avro
161 {
162  template<> struct codec_traits<gpudb::ClearTableResponse>
163  {
164  static void encode(Encoder& e, const gpudb::ClearTableResponse& v)
165  {
166  ::avro::encode(e, v.tableName);
167  ::avro::encode(e, v.info);
168  }
169 
170  static void decode(Decoder& d, gpudb::ClearTableResponse& v)
171  {
172  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
173  {
174  const std::vector<size_t> fo = rd->fieldOrder();
175 
176  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
177  {
178  switch (*it)
179  {
180  case 0:
181  ::avro::decode(d, v.tableName);
182  break;
183 
184  case 1:
185  ::avro::decode(d, v.info);
186  break;
187 
188  default:
189  break;
190  }
191  }
192  }
193  else
194  {
195  ::avro::decode(d, v.tableName);
196  ::avro::decode(d, v.info);
197  }
198  }
199  };
200 }
201 
202 #endif
std::map< std::string, std::string > info
Definition: clear_table.h:156
A set of input parameters for const.
Definition: clear_table.h:23
ClearTableRequest(const std::string &tableName_, const std::string &authorization_, const std::map< std::string, std::string > &options_)
Constructs a ClearTableRequest object with the specified parameters.
Definition: clear_table.h:67
A set of output parameters for const.
Definition: clear_table.h:142
ClearTableResponse()
Constructs a ClearTableResponse object with default parameter values.
Definition: clear_table.h:149
std::string authorization
Definition: clear_table.h:75
std::map< std::string, std::string > options
Definition: clear_table.h:76
ClearTableRequest()
Constructs a ClearTableRequest object with default parameter values.
Definition: clear_table.h:29