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