GPUdb C++ API  Version 7.2.2.4
show_video.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_VIDEO_H__
7 #define __SHOW_VIDEO_H__
8 
9 namespace gpudb
10 {
18  {
23  paths(std::vector<std::string>()),
24  options(std::map<std::string, std::string>())
25  {
26  }
27 
38  ShowVideoRequest(const std::vector<std::string>& paths_, const std::map<std::string, std::string>& options_):
39  paths( paths_ ),
40  options( options_ )
41  {
42  }
43 
49  std::vector<std::string> paths;
50 
54  std::map<std::string, std::string> options;
55  };
56 } // end namespace gpudb
57 
58 namespace avro
59 {
60  template<> struct codec_traits<gpudb::ShowVideoRequest>
61  {
62  static void encode(Encoder& e, const gpudb::ShowVideoRequest& v)
63  {
64  ::avro::encode(e, v.paths);
65  ::avro::encode(e, v.options);
66  }
67 
68  static void decode(Decoder& d, gpudb::ShowVideoRequest& v)
69  {
70  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
71  {
72  const std::vector<size_t> fo = rd->fieldOrder();
73 
74  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
75  {
76  switch (*it)
77  {
78  case 0:
79  ::avro::decode(d, v.paths);
80  break;
81 
82  case 1:
83  ::avro::decode(d, v.options);
84  break;
85 
86  default:
87  break;
88  }
89  }
90  }
91  else
92  {
93  ::avro::decode(d, v.paths);
94  ::avro::decode(d, v.options);
95  }
96  }
97  };
98 } // end namespace avro
99 
100 namespace gpudb
101 {
107  {
112  creationTimes(std::vector<std::string>()),
113  elapsedRenderTimeSeconds(std::vector<int64_t>()),
114  jobIds(std::vector<int64_t>()),
115  paths(std::vector<std::string>()),
116  renderedBytes(std::vector<int64_t>()),
117  renderedFrames(std::vector<int64_t>()),
118  renderedPercents(std::vector<int64_t>()),
119  requests(std::vector<std::string>()),
120  status(std::vector<std::string>()),
121  ttls(std::vector<int64_t>()),
122  info(std::map<std::string, std::string>())
123  {
124  }
125 
129  std::vector<std::string> creationTimes;
130 
134  std::vector<int64_t> elapsedRenderTimeSeconds;
135 
140  std::vector<int64_t> jobIds;
141 
145  std::vector<std::string> paths;
146 
150  std::vector<int64_t> renderedBytes;
151 
155  std::vector<int64_t> renderedFrames;
156 
160  std::vector<int64_t> renderedPercents;
161 
165  std::vector<std::string> requests;
166 
171  std::vector<std::string> status;
172 
178  std::vector<int64_t> ttls;
179 
183  std::map<std::string, std::string> info;
184  };
185 } // end namespace gpudb
186 
187 namespace avro
188 {
189  template<> struct codec_traits<gpudb::ShowVideoResponse>
190  {
191  static void encode(Encoder& e, const gpudb::ShowVideoResponse& v)
192  {
193  ::avro::encode(e, v.creationTimes);
194  ::avro::encode(e, v.elapsedRenderTimeSeconds);
195  ::avro::encode(e, v.jobIds);
196  ::avro::encode(e, v.paths);
197  ::avro::encode(e, v.renderedBytes);
198  ::avro::encode(e, v.renderedFrames);
199  ::avro::encode(e, v.renderedPercents);
200  ::avro::encode(e, v.requests);
201  ::avro::encode(e, v.status);
202  ::avro::encode(e, v.ttls);
203  ::avro::encode(e, v.info);
204  }
205 
206  static void decode(Decoder& d, gpudb::ShowVideoResponse& v)
207  {
208  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
209  {
210  const std::vector<size_t> fo = rd->fieldOrder();
211 
212  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
213  {
214  switch (*it)
215  {
216  case 0:
217  ::avro::decode(d, v.creationTimes);
218  break;
219 
220  case 1:
221  ::avro::decode(d, v.elapsedRenderTimeSeconds);
222  break;
223 
224  case 2:
225  ::avro::decode(d, v.jobIds);
226  break;
227 
228  case 3:
229  ::avro::decode(d, v.paths);
230  break;
231 
232  case 4:
233  ::avro::decode(d, v.renderedBytes);
234  break;
235 
236  case 5:
237  ::avro::decode(d, v.renderedFrames);
238  break;
239 
240  case 6:
241  ::avro::decode(d, v.renderedPercents);
242  break;
243 
244  case 7:
245  ::avro::decode(d, v.requests);
246  break;
247 
248  case 8:
249  ::avro::decode(d, v.status);
250  break;
251 
252  case 9:
253  ::avro::decode(d, v.ttls);
254  break;
255 
256  case 10:
257  ::avro::decode(d, v.info);
258  break;
259 
260  default:
261  break;
262  }
263  }
264  }
265  else
266  {
267  ::avro::decode(d, v.creationTimes);
268  ::avro::decode(d, v.elapsedRenderTimeSeconds);
269  ::avro::decode(d, v.jobIds);
270  ::avro::decode(d, v.paths);
271  ::avro::decode(d, v.renderedBytes);
272  ::avro::decode(d, v.renderedFrames);
273  ::avro::decode(d, v.renderedPercents);
274  ::avro::decode(d, v.requests);
275  ::avro::decode(d, v.status);
276  ::avro::decode(d, v.ttls);
277  ::avro::decode(d, v.info);
278  }
279  }
280  };
281 } // end namespace avro
282 
283 #endif // __SHOW_VIDEO_H__
A set of results returned by GPUdb::showVideo.
Definition: show_video.h:106
std::vector< std::string > creationTimes
Creation time for each video as an ISO-8601 datetime.
Definition: show_video.h:129
std::vector< int64_t > renderedFrames
The number of frames rendered for each video.
Definition: show_video.h:155
std::vector< int64_t > renderedPercents
Percent completion of each video's rendering process (0-100)
Definition: show_video.h:160
std::vector< std::string > paths
The fully-qualified KiFS paths for the videos to show.
Definition: show_video.h:49
std::vector< int64_t > renderedBytes
The number of bytes emitted by the encoder for each video.
Definition: show_video.h:150
std::map< std::string, std::string > info
Additional information.
Definition: show_video.h:183
std::vector< std::string > requests
JSON-string reflecting each video's creation parameters.
Definition: show_video.h:165
ShowVideoResponse()
Constructs a ShowVideoResponse object with default parameters.
Definition: show_video.h:111
std::vector< int64_t > jobIds
The job id of the rendering process, for each video that is still being rendered.
Definition: show_video.h:140
std::vector< std::string > status
The status of the last rendered frame for each video.
Definition: show_video.h:171
std::vector< std::string > paths
KIFS path to each video.
Definition: show_video.h:145
A set of parameters for GPUdb::showVideo.
Definition: show_video.h:17
std::map< std::string, std::string > options
Optional parameters.
Definition: show_video.h:54
std::vector< int64_t > elapsedRenderTimeSeconds
The elapsed time spent rendering each video in seconds.
Definition: show_video.h:134
ShowVideoRequest()
Constructs a ShowVideoRequest object with default parameters.
Definition: show_video.h:22
std::vector< int64_t > ttls
The remaining TTL, in minutes, before the respective video expires (-1 if it will never expire).
Definition: show_video.h:178
ShowVideoRequest(const std::vector< std::string > &paths_, const std::map< std::string, std::string > &options_)
Constructs a ShowVideoRequest object with the specified parameters.
Definition: show_video.h:38