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