GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
show_directories.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 __SHOW_DIRECTORIES_H__
7 #define __SHOW_DIRECTORIES_H__
8 
9 namespace gpudb
10 {
11 
21  {
22 
28  directoryName(std::string()),
29  options(std::map<std::string, std::string>())
30  {
31  }
32 
42  ShowDirectoriesRequest(const std::string& directoryName_, const std::map<std::string, std::string>& options_):
43  directoryName( directoryName_ ),
44  options( options_ )
45  {
46  }
47 
48  std::string directoryName;
49  std::map<std::string, std::string> options;
50  };
51 }
52 
53 namespace avro
54 {
55  template<> struct codec_traits<gpudb::ShowDirectoriesRequest>
56  {
57  static void encode(Encoder& e, const gpudb::ShowDirectoriesRequest& v)
58  {
59  ::avro::encode(e, v.directoryName);
60  ::avro::encode(e, v.options);
61  }
62 
63  static void decode(Decoder& d, gpudb::ShowDirectoriesRequest& v)
64  {
65  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
66  {
67  const std::vector<size_t> fo = rd->fieldOrder();
68 
69  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
70  {
71  switch (*it)
72  {
73  case 0:
74  ::avro::decode(d, v.directoryName);
75  break;
76 
77  case 1:
78  ::avro::decode(d, v.options);
79  break;
80 
81  default:
82  break;
83  }
84  }
85  }
86  else
87  {
88  ::avro::decode(d, v.directoryName);
89  ::avro::decode(d, v.options);
90  }
91  }
92  };
93 }
94 
95 namespace gpudb
96 {
97 
107  {
108 
114  directories(std::vector<std::string>()),
115  users(std::vector<std::string>()),
116  creationTimes(std::vector<int64_t>()),
117  dataUsages(std::vector<int64_t>()),
118  dataLimits(std::vector<int64_t>()),
119  permissions(std::vector<std::string>()),
120  info(std::map<std::string, std::string>())
121  {
122  }
123 
124  std::vector<std::string> directories;
125  std::vector<std::string> users;
126  std::vector<int64_t> creationTimes;
127  std::vector<int64_t> dataUsages;
128  std::vector<int64_t> dataLimits;
129  std::vector<std::string> permissions;
130  std::map<std::string, std::string> info;
131  };
132 }
133 
134 namespace avro
135 {
136  template<> struct codec_traits<gpudb::ShowDirectoriesResponse>
137  {
138  static void encode(Encoder& e, const gpudb::ShowDirectoriesResponse& v)
139  {
140  ::avro::encode(e, v.directories);
141  ::avro::encode(e, v.users);
142  ::avro::encode(e, v.creationTimes);
143  ::avro::encode(e, v.dataUsages);
144  ::avro::encode(e, v.dataLimits);
145  ::avro::encode(e, v.permissions);
146  ::avro::encode(e, v.info);
147  }
148 
149  static void decode(Decoder& d, gpudb::ShowDirectoriesResponse& v)
150  {
151  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
152  {
153  const std::vector<size_t> fo = rd->fieldOrder();
154 
155  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
156  {
157  switch (*it)
158  {
159  case 0:
160  ::avro::decode(d, v.directories);
161  break;
162 
163  case 1:
164  ::avro::decode(d, v.users);
165  break;
166 
167  case 2:
168  ::avro::decode(d, v.creationTimes);
169  break;
170 
171  case 3:
172  ::avro::decode(d, v.dataUsages);
173  break;
174 
175  case 4:
176  ::avro::decode(d, v.dataLimits);
177  break;
178 
179  case 5:
180  ::avro::decode(d, v.permissions);
181  break;
182 
183  case 6:
184  ::avro::decode(d, v.info);
185  break;
186 
187  default:
188  break;
189  }
190  }
191  }
192  else
193  {
194  ::avro::decode(d, v.directories);
195  ::avro::decode(d, v.users);
196  ::avro::decode(d, v.creationTimes);
197  ::avro::decode(d, v.dataUsages);
198  ::avro::decode(d, v.dataLimits);
199  ::avro::decode(d, v.permissions);
200  ::avro::decode(d, v.info);
201  }
202  }
203  };
204 }
205 
206 #endif
std::vector< int64_t > dataUsages
ShowDirectoriesResponse()
Constructs a ShowDirectoriesResponse object with default parameter values.
A set of input parameters for const.
std::vector< int64_t > creationTimes
std::map< std::string, std::string > info
std::vector< std::string > permissions
std::map< std::string, std::string > options
std::vector< std::string > users
ShowDirectoriesRequest(const std::string &directoryName_, const std::map< std::string, std::string > &options_)
Constructs a ShowDirectoriesRequest object with the specified parameters.
std::vector< int64_t > dataLimits
std::vector< std::string > directories
A set of output parameters for const.
ShowDirectoriesRequest()
Constructs a ShowDirectoriesRequest object with default parameter values.