GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
alter_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 __ALTER_DIRECTORY_H__
7 #define __ALTER_DIRECTORY_H__
8 
9 namespace gpudb
10 {
11 
20  {
21 
27  directoryName(std::string()),
28  directoryUpdatesMap(std::map<std::string, std::string>()),
29  options(std::map<std::string, std::string>())
30  {
31  }
32 
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 
59  std::string directoryName;
60  std::map<std::string, std::string> directoryUpdatesMap;
61  std::map<std::string, std::string> options;
62  };
63 }
64 
65 namespace avro
66 {
67  template<> struct codec_traits<gpudb::AlterDirectoryRequest>
68  {
69  static void encode(Encoder& e, const gpudb::AlterDirectoryRequest& v)
70  {
71  ::avro::encode(e, v.directoryName);
72  ::avro::encode(e, v.directoryUpdatesMap);
73  ::avro::encode(e, v.options);
74  }
75 
76  static void decode(Decoder& d, gpudb::AlterDirectoryRequest& v)
77  {
78  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
79  {
80  const std::vector<size_t> fo = rd->fieldOrder();
81 
82  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
83  {
84  switch (*it)
85  {
86  case 0:
87  ::avro::decode(d, v.directoryName);
88  break;
89 
90  case 1:
91  ::avro::decode(d, v.directoryUpdatesMap);
92  break;
93 
94  case 2:
95  ::avro::decode(d, v.options);
96  break;
97 
98  default:
99  break;
100  }
101  }
102  }
103  else
104  {
105  ::avro::decode(d, v.directoryName);
106  ::avro::decode(d, v.directoryUpdatesMap);
107  ::avro::decode(d, v.options);
108  }
109  }
110  };
111 }
112 
113 namespace gpudb
114 {
115 
124  {
125 
131  directoryName(std::string()),
132  info(std::map<std::string, std::string>())
133  {
134  }
135 
136  std::string directoryName;
137  std::map<std::string, std::string> info;
138  };
139 }
140 
141 namespace avro
142 {
143  template<> struct codec_traits<gpudb::AlterDirectoryResponse>
144  {
145  static void encode(Encoder& e, const gpudb::AlterDirectoryResponse& v)
146  {
147  ::avro::encode(e, v.directoryName);
148  ::avro::encode(e, v.info);
149  }
150 
151  static void decode(Decoder& d, gpudb::AlterDirectoryResponse& v)
152  {
153  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
154  {
155  const std::vector<size_t> fo = rd->fieldOrder();
156 
157  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
158  {
159  switch (*it)
160  {
161  case 0:
162  ::avro::decode(d, v.directoryName);
163  break;
164 
165  case 1:
166  ::avro::decode(d, v.info);
167  break;
168 
169  default:
170  break;
171  }
172  }
173  }
174  else
175  {
176  ::avro::decode(d, v.directoryName);
177  ::avro::decode(d, v.info);
178  }
179  }
180  };
181 }
182 
183 #endif
AlterDirectoryResponse()
Constructs an AlterDirectoryResponse object with default parameter values.
A set of output parameters for const.
std::map< std::string, std::string > options
std::map< std::string, std::string > directoryUpdatesMap
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
A set of input parameters for const.
AlterDirectoryRequest()
Constructs an AlterDirectoryRequest object with default parameter values.