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