GPUdb C++ API  Version 7.2.2.4
alter_directory.h
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the Kinetica schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 #ifndef __ALTER_DIRECTORY_H__
7 #define __ALTER_DIRECTORY_H__
8 
9 namespace gpudb
10 {
20  {
25  directoryName(std::string()),
26  directoryUpdatesMap(std::map<std::string, std::string>()),
27  options(std::map<std::string, std::string>())
28  {
29  }
30 
52  AlterDirectoryRequest(const std::string& directoryName_, const std::map<std::string, std::string>& directoryUpdatesMap_, const std::map<std::string, std::string>& options_):
53  directoryName( directoryName_ ),
54  directoryUpdatesMap( directoryUpdatesMap_ ),
55  options( options_ )
56  {
57  }
58 
62  std::string directoryName;
63 
74  std::map<std::string, std::string> directoryUpdatesMap;
75 
79  std::map<std::string, std::string> options;
80  };
81 } // end namespace gpudb
82 
83 namespace avro
84 {
85  template<> struct codec_traits<gpudb::AlterDirectoryRequest>
86  {
87  static void encode(Encoder& e, const gpudb::AlterDirectoryRequest& v)
88  {
89  ::avro::encode(e, v.directoryName);
90  ::avro::encode(e, v.directoryUpdatesMap);
91  ::avro::encode(e, v.options);
92  }
93 
94  static void decode(Decoder& d, gpudb::AlterDirectoryRequest& v)
95  {
96  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
97  {
98  const std::vector<size_t> fo = rd->fieldOrder();
99 
100  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
101  {
102  switch (*it)
103  {
104  case 0:
105  ::avro::decode(d, v.directoryName);
106  break;
107 
108  case 1:
109  ::avro::decode(d, v.directoryUpdatesMap);
110  break;
111 
112  case 2:
113  ::avro::decode(d, v.options);
114  break;
115 
116  default:
117  break;
118  }
119  }
120  }
121  else
122  {
123  ::avro::decode(d, v.directoryName);
124  ::avro::decode(d, v.directoryUpdatesMap);
125  ::avro::decode(d, v.options);
126  }
127  }
128  };
129 } // end namespace avro
130 
131 namespace gpudb
132 {
139  {
144  directoryName(std::string()),
145  info(std::map<std::string, std::string>())
146  {
147  }
148 
153  std::string directoryName;
154 
158  std::map<std::string, std::string> info;
159  };
160 } // end namespace gpudb
161 
162 namespace avro
163 {
164  template<> struct codec_traits<gpudb::AlterDirectoryResponse>
165  {
166  static void encode(Encoder& e, const gpudb::AlterDirectoryResponse& v)
167  {
168  ::avro::encode(e, v.directoryName);
169  ::avro::encode(e, v.info);
170  }
171 
172  static void decode(Decoder& d, gpudb::AlterDirectoryResponse& v)
173  {
174  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
175  {
176  const std::vector<size_t> fo = rd->fieldOrder();
177 
178  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
179  {
180  switch (*it)
181  {
182  case 0:
183  ::avro::decode(d, v.directoryName);
184  break;
185 
186  case 1:
187  ::avro::decode(d, v.info);
188  break;
189 
190  default:
191  break;
192  }
193  }
194  }
195  else
196  {
197  ::avro::decode(d, v.directoryName);
198  ::avro::decode(d, v.info);
199  }
200  }
201  };
202 } // end namespace avro
203 
204 #endif // __ALTER_DIRECTORY_H__
AlterDirectoryResponse()
Constructs an AlterDirectoryResponse object with default parameters.
A set of results returned by GPUdb::alterDirectory.
std::map< std::string, std::string > options
Optional parameters.
std::map< std::string, std::string > directoryUpdatesMap
Map containing the properties of the directory to be altered.
AlterDirectoryRequest(const std::string &directoryName_, const std::map< std::string, std::string > &directoryUpdatesMap_, const std::map< std::string, std::string > &options_)
Constructs an AlterDirectoryRequest object with the specified parameters.
std::map< std::string, std::string > info
Additional information.
A set of parameters for GPUdb::alterDirectory.
AlterDirectoryRequest()
Constructs an AlterDirectoryRequest object with default parameters.
std::string directoryName
Name of the directory in KiFS to be altered.
std::string directoryName
Value of directoryName.