GPUdb C++ API  Version 7.2.2.4
show_directories.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 __SHOW_DIRECTORIES_H__
7 #define __SHOW_DIRECTORIES_H__
8 
9 namespace gpudb
10 {
21  {
26  directoryName(std::string()),
27  options(std::map<std::string, std::string>())
28  {
29  }
30 
41  ShowDirectoriesRequest(const std::string& directoryName_, const std::map<std::string, std::string>& options_):
42  directoryName( directoryName_ ),
43  options( options_ )
44  {
45  }
46 
51  std::string directoryName;
52 
56  std::map<std::string, std::string> options;
57  };
58 } // end namespace gpudb
59 
60 namespace avro
61 {
62  template<> struct codec_traits<gpudb::ShowDirectoriesRequest>
63  {
64  static void encode(Encoder& e, const gpudb::ShowDirectoriesRequest& v)
65  {
66  ::avro::encode(e, v.directoryName);
67  ::avro::encode(e, v.options);
68  }
69 
70  static void decode(Decoder& d, gpudb::ShowDirectoriesRequest& v)
71  {
72  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
73  {
74  const std::vector<size_t> fo = rd->fieldOrder();
75 
76  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
77  {
78  switch (*it)
79  {
80  case 0:
81  ::avro::decode(d, v.directoryName);
82  break;
83 
84  case 1:
85  ::avro::decode(d, v.options);
86  break;
87 
88  default:
89  break;
90  }
91  }
92  }
93  else
94  {
95  ::avro::decode(d, v.directoryName);
96  ::avro::decode(d, v.options);
97  }
98  }
99  };
100 } // end namespace avro
101 
102 namespace gpudb
103 {
110  {
115  directories(std::vector<std::string>()),
116  users(std::vector<std::string>()),
117  creationTimes(std::vector<int64_t>()),
118  dataUsages(std::vector<int64_t>()),
119  dataLimits(std::vector<int64_t>()),
120  permissions(std::vector<std::string>()),
121  info(std::map<std::string, std::string>())
122  {
123  }
124 
128  std::vector<std::string> directories;
129 
134  std::vector<std::string> users;
135 
140  std::vector<int64_t> creationTimes;
141 
146  std::vector<int64_t> dataUsages;
147 
152  std::vector<int64_t> dataLimits;
153 
160  std::vector<std::string> permissions;
161 
165  std::map<std::string, std::string> info;
166  };
167 } // end namespace gpudb
168 
169 namespace avro
170 {
171  template<> struct codec_traits<gpudb::ShowDirectoriesResponse>
172  {
173  static void encode(Encoder& e, const gpudb::ShowDirectoriesResponse& v)
174  {
175  ::avro::encode(e, v.directories);
176  ::avro::encode(e, v.users);
177  ::avro::encode(e, v.creationTimes);
178  ::avro::encode(e, v.dataUsages);
179  ::avro::encode(e, v.dataLimits);
180  ::avro::encode(e, v.permissions);
181  ::avro::encode(e, v.info);
182  }
183 
184  static void decode(Decoder& d, gpudb::ShowDirectoriesResponse& v)
185  {
186  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
187  {
188  const std::vector<size_t> fo = rd->fieldOrder();
189 
190  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
191  {
192  switch (*it)
193  {
194  case 0:
195  ::avro::decode(d, v.directories);
196  break;
197 
198  case 1:
199  ::avro::decode(d, v.users);
200  break;
201 
202  case 2:
203  ::avro::decode(d, v.creationTimes);
204  break;
205 
206  case 3:
207  ::avro::decode(d, v.dataUsages);
208  break;
209 
210  case 4:
211  ::avro::decode(d, v.dataLimits);
212  break;
213 
214  case 5:
215  ::avro::decode(d, v.permissions);
216  break;
217 
218  case 6:
219  ::avro::decode(d, v.info);
220  break;
221 
222  default:
223  break;
224  }
225  }
226  }
227  else
228  {
229  ::avro::decode(d, v.directories);
230  ::avro::decode(d, v.users);
231  ::avro::decode(d, v.creationTimes);
232  ::avro::decode(d, v.dataUsages);
233  ::avro::decode(d, v.dataLimits);
234  ::avro::decode(d, v.permissions);
235  ::avro::decode(d, v.info);
236  }
237  }
238  };
239 } // end namespace avro
240 
241 #endif // __SHOW_DIRECTORIES_H__
std::vector< int64_t > dataUsages
The data usage each directory in bytes, for the respective directories in directories.
ShowDirectoriesResponse()
Constructs a ShowDirectoriesResponse object with default parameters.
A set of parameters for GPUdb::showDirectories.
std::vector< int64_t > creationTimes
The creation time for each directory in milliseconds since epoch, for the respective directories in d...
std::map< std::string, std::string > info
Additional information.
std::vector< std::string > permissions
Highest level of permission the calling user has for the respective directories in directories.
std::map< std::string, std::string > options
Optional parameters.
std::vector< std::string > users
User that created each directory for the respective directories in directories.
std::string directoryName
The KiFS directory name to show.
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
The data limit for each directory in bytes, for the respective directories in directories.
std::vector< std::string > directories
KiFS directory names.
A set of results returned by GPUdb::showDirectories.
ShowDirectoriesRequest()
Constructs a ShowDirectoriesRequest object with default parameters.