GPUdb C++ API  Version 7.2.2.4
alter_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 __ALTER_VIDEO_H__
7 #define __ALTER_VIDEO_H__
8 
9 namespace gpudb
10 {
18  {
23  path(std::string()),
24  options(std::map<std::string, std::string>())
25  {
26  }
27 
44  AlterVideoRequest(const std::string& path_, const std::map<std::string, std::string>& options_):
45  path( path_ ),
46  options( options_ )
47  {
48  }
49 
54  std::string path;
55 
65  std::map<std::string, std::string> options;
66  };
67 } // end namespace gpudb
68 
69 namespace avro
70 {
71  template<> struct codec_traits<gpudb::AlterVideoRequest>
72  {
73  static void encode(Encoder& e, const gpudb::AlterVideoRequest& v)
74  {
75  ::avro::encode(e, v.path);
76  ::avro::encode(e, v.options);
77  }
78 
79  static void decode(Decoder& d, gpudb::AlterVideoRequest& v)
80  {
81  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
82  {
83  const std::vector<size_t> fo = rd->fieldOrder();
84 
85  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
86  {
87  switch (*it)
88  {
89  case 0:
90  ::avro::decode(d, v.path);
91  break;
92 
93  case 1:
94  ::avro::decode(d, v.options);
95  break;
96 
97  default:
98  break;
99  }
100  }
101  }
102  else
103  {
104  ::avro::decode(d, v.path);
105  ::avro::decode(d, v.options);
106  }
107  }
108  };
109 } // end namespace avro
110 
111 namespace gpudb
112 {
118  {
123  path(std::string()),
124  info(std::map<std::string, std::string>())
125  {
126  }
127 
131  std::string path;
132 
136  std::map<std::string, std::string> info;
137  };
138 } // end namespace gpudb
139 
140 namespace avro
141 {
142  template<> struct codec_traits<gpudb::AlterVideoResponse>
143  {
144  static void encode(Encoder& e, const gpudb::AlterVideoResponse& v)
145  {
146  ::avro::encode(e, v.path);
147  ::avro::encode(e, v.info);
148  }
149 
150  static void decode(Decoder& d, gpudb::AlterVideoResponse& v)
151  {
152  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
153  {
154  const std::vector<size_t> fo = rd->fieldOrder();
155 
156  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
157  {
158  switch (*it)
159  {
160  case 0:
161  ::avro::decode(d, v.path);
162  break;
163 
164  case 1:
165  ::avro::decode(d, v.info);
166  break;
167 
168  default:
169  break;
170  }
171  }
172  }
173  else
174  {
175  ::avro::decode(d, v.path);
176  ::avro::decode(d, v.info);
177  }
178  }
179  };
180 } // end namespace avro
181 
182 #endif // __ALTER_VIDEO_H__
A set of parameters for GPUdb::alterVideo.
Definition: alter_video.h:17
std::map< std::string, std::string > info
Additional information.
Definition: alter_video.h:136
AlterVideoRequest(const std::string &path_, const std::map< std::string, std::string > &options_)
Constructs an AlterVideoRequest object with the specified parameters.
Definition: alter_video.h:44
AlterVideoResponse()
Constructs an AlterVideoResponse object with default parameters.
Definition: alter_video.h:122
AlterVideoRequest()
Constructs an AlterVideoRequest object with default parameters.
Definition: alter_video.h:22
std::map< std::string, std::string > options
Optional parameters.
Definition: alter_video.h:65
A set of results returned by GPUdb::alterVideo.
Definition: alter_video.h:117
std::string path
Fully qualified KIFS path to the video file.
Definition: alter_video.h:131
std::string path
Fully-qualified KiFS path to the video to be altered.
Definition: alter_video.h:54