GPUdb C++ API  Version 5.2.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 
47  ClearTableRequest(const std::string& tableName, const std::string& authorization, const std::map<std::string, std::string>& options):
48  tableName(tableName),
49  authorization(authorization),
50  options(options)
51  {
52  }
53 
54  std::string tableName;
55  std::string authorization;
56  std::map<std::string, std::string> options;
57  };
58 }
59 
60 namespace avro
61 {
62  template<> struct codec_traits<gpudb::ClearTableRequest>
63  {
64  static void encode(Encoder& e, const gpudb::ClearTableRequest& v)
65  {
66  ::avro::encode(e, v.tableName);
67  ::avro::encode(e, v.authorization);
68  ::avro::encode(e, v.options);
69  }
70 
71  static void decode(Decoder& d, gpudb::ClearTableRequest& v)
72  {
73  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
74  {
75  const std::vector<size_t> fo = rd->fieldOrder();
76 
77  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
78  {
79  switch (*it)
80  {
81  case 0:
82  ::avro::decode(d, v.tableName);
83  break;
84 
85  case 1:
86  ::avro::decode(d, v.authorization);
87  break;
88 
89  case 2:
90  ::avro::decode(d, v.options);
91  break;
92 
93  default:
94  break;
95  }
96  }
97  }
98  else
99  {
100  ::avro::decode(d, v.tableName);
101  ::avro::decode(d, v.authorization);
102  ::avro::decode(d, v.options);
103  }
104  }
105  };
106 }
107 
108 namespace gpudb
109 {
110 
121  {
122 
128  tableName(std::string())
129  {
130  }
131 
132  std::string tableName;
133  };
134 }
135 
136 namespace avro
137 {
138  template<> struct codec_traits<gpudb::ClearTableResponse>
139  {
140  static void encode(Encoder& e, const gpudb::ClearTableResponse& v)
141  {
142  ::avro::encode(e, v.tableName);
143  }
144 
145  static void decode(Decoder& d, gpudb::ClearTableResponse& v)
146  {
147  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
148  {
149  const std::vector<size_t> fo = rd->fieldOrder();
150 
151  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
152  {
153  switch (*it)
154  {
155  case 0:
156  ::avro::decode(d, v.tableName);
157  break;
158 
159  default:
160  break;
161  }
162  }
163  }
164  else
165  {
166  ::avro::decode(d, v.tableName);
167  }
168  }
169  };
170 }
171 
172 #endif
A set of input parameters for clearTable(const ClearTableRequest&) const.
Definition: clear_table.h:21
A set of output parameters for clearTable(const ClearTableRequest&) const.
Definition: clear_table.h:120
ClearTableResponse()
Constructs a ClearTableResponse object with default parameter values.
Definition: clear_table.h:127
std::string authorization
Definition: clear_table.h:55
std::map< std::string, std::string > options
Definition: clear_table.h:56
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:47
ClearTableRequest()
Constructs a ClearTableRequest object with default parameter values.
Definition: clear_table.h:27