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