GPUdb C++ API  Version 6.2.0.3
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 
22  {
23 
28  tableName(std::string()),
29  authorization(std::string()),
30  options(std::map<std::string, std::string>())
31  {
32  }
33 
61  ClearTableRequest(const std::string& tableName_, const std::string& authorization_, const std::map<std::string, std::string>& options_):
62  tableName( tableName_ ),
63  authorization( authorization_ ),
64  options( options_ )
65  {
66  }
67 
68  std::string tableName;
69  std::string authorization;
70  std::map<std::string, std::string> options;
71  };
72 }
73 
74 namespace avro
75 {
76  template<> struct codec_traits<gpudb::ClearTableRequest>
77  {
78  static void encode(Encoder& e, const gpudb::ClearTableRequest& v)
79  {
80  ::avro::encode(e, v.tableName);
81  ::avro::encode(e, v.authorization);
82  ::avro::encode(e, v.options);
83  }
84 
85  static void decode(Decoder& d, gpudb::ClearTableRequest& v)
86  {
87  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
88  {
89  const std::vector<size_t> fo = rd->fieldOrder();
90 
91  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
92  {
93  switch (*it)
94  {
95  case 0:
96  ::avro::decode(d, v.tableName);
97  break;
98 
99  case 1:
100  ::avro::decode(d, v.authorization);
101  break;
102 
103  case 2:
104  ::avro::decode(d, v.options);
105  break;
106 
107  default:
108  break;
109  }
110  }
111  }
112  else
113  {
114  ::avro::decode(d, v.tableName);
115  ::avro::decode(d, v.authorization);
116  ::avro::decode(d, v.options);
117  }
118  }
119  };
120 }
121 
122 namespace gpudb
123 {
124 
135  {
136 
142  tableName(std::string())
143  {
144  }
145 
146  std::string tableName;
147  };
148 }
149 
150 namespace avro
151 {
152  template<> struct codec_traits<gpudb::ClearTableResponse>
153  {
154  static void encode(Encoder& e, const gpudb::ClearTableResponse& v)
155  {
156  ::avro::encode(e, v.tableName);
157  }
158 
159  static void decode(Decoder& d, gpudb::ClearTableResponse& v)
160  {
161  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
162  {
163  const std::vector<size_t> fo = rd->fieldOrder();
164 
165  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
166  {
167  switch (*it)
168  {
169  case 0:
170  ::avro::decode(d, v.tableName);
171  break;
172 
173  default:
174  break;
175  }
176  }
177  }
178  else
179  {
180  ::avro::decode(d, v.tableName);
181  }
182  }
183  };
184 }
185 
186 #endif
A set of input parameters for clearTable(const ClearTableRequest&) const.
Definition: clear_table.h:21
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:61
A set of output parameters for clearTable(const ClearTableRequest&) const.
Definition: clear_table.h:134
ClearTableResponse()
Constructs a ClearTableResponse object with default parameter values.
Definition: clear_table.h:141
std::string authorization
Definition: clear_table.h:69
std::map< std::string, std::string > options
Definition: clear_table.h:70
ClearTableRequest()
Constructs a ClearTableRequest object with default parameter values.
Definition: clear_table.h:27