GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
delete_directory.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 __DELETE_DIRECTORY_H__
7 #define __DELETE_DIRECTORY_H__
8 
9 namespace gpudb
10 {
11 
20  {
21 
27  directoryName(std::string()),
28  options(std::map<std::string, std::string>())
29  {
30  }
31 
64  DeleteDirectoryRequest(const std::string& directoryName_, const std::map<std::string, std::string>& options_):
65  directoryName( directoryName_ ),
66  options( options_ )
67  {
68  }
69 
70  std::string directoryName;
71  std::map<std::string, std::string> options;
72  };
73 }
74 
75 namespace avro
76 {
77  template<> struct codec_traits<gpudb::DeleteDirectoryRequest>
78  {
79  static void encode(Encoder& e, const gpudb::DeleteDirectoryRequest& v)
80  {
81  ::avro::encode(e, v.directoryName);
82  ::avro::encode(e, v.options);
83  }
84 
85  static void decode(Decoder& d, gpudb::DeleteDirectoryRequest& 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.directoryName);
97  break;
98 
99  case 1:
100  ::avro::decode(d, v.options);
101  break;
102 
103  default:
104  break;
105  }
106  }
107  }
108  else
109  {
110  ::avro::decode(d, v.directoryName);
111  ::avro::decode(d, v.options);
112  }
113  }
114  };
115 }
116 
117 namespace gpudb
118 {
119 
128  {
129 
135  directoryName(std::string()),
136  info(std::map<std::string, std::string>())
137  {
138  }
139 
140  std::string directoryName;
141  std::map<std::string, std::string> info;
142  };
143 }
144 
145 namespace avro
146 {
147  template<> struct codec_traits<gpudb::DeleteDirectoryResponse>
148  {
149  static void encode(Encoder& e, const gpudb::DeleteDirectoryResponse& v)
150  {
151  ::avro::encode(e, v.directoryName);
152  ::avro::encode(e, v.info);
153  }
154 
155  static void decode(Decoder& d, gpudb::DeleteDirectoryResponse& v)
156  {
157  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
158  {
159  const std::vector<size_t> fo = rd->fieldOrder();
160 
161  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
162  {
163  switch (*it)
164  {
165  case 0:
166  ::avro::decode(d, v.directoryName);
167  break;
168 
169  case 1:
170  ::avro::decode(d, v.info);
171  break;
172 
173  default:
174  break;
175  }
176  }
177  }
178  else
179  {
180  ::avro::decode(d, v.directoryName);
181  ::avro::decode(d, v.info);
182  }
183  }
184  };
185 }
186 
187 #endif
std::map< std::string, std::string > options
A set of input parameters for const.
DeleteDirectoryRequest()
Constructs a DeleteDirectoryRequest object with default parameter values.
A set of output parameters for const.
DeleteDirectoryResponse()
Constructs a DeleteDirectoryResponse object with default parameter values.
std::map< std::string, std::string > info
DeleteDirectoryRequest(const std::string &directoryName_, const std::map< std::string, std::string > &options_)
Constructs a DeleteDirectoryRequest object with the specified parameters.