6 #ifndef __CREATE_VIDEO_H__     7 #define __CREATE_VIDEO_H__    33             options(std::map<std::string, std::string>())
   140         CreateVideoRequest(
const std::string& attribute_, 
const std::string& begin_, 
const double durationSeconds_, 
const std::string& end_, 
const double framesPerSecond_, 
const std::string& style_, 
const std::string& path_, 
const std::string& styleParameters_, 
const std::map<std::string, std::string>& options_):
   263     template<> 
struct codec_traits<
gpudb::CreateVideoRequest>
   268             ::avro::encode(e, v.
begin);
   270             ::avro::encode(e, v.
end);
   272             ::avro::encode(e, v.
style);
   273             ::avro::encode(e, v.
path);
   280             if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
   282                 const std::vector<size_t> fo = rd->fieldOrder();
   284                 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
   293                             ::avro::decode(d, v.
begin);
   301                             ::avro::decode(d, v.
end);
   309                             ::avro::decode(d, v.
style);
   313                             ::avro::decode(d, v.
path);
   332                 ::avro::decode(d, v.
begin);
   334                 ::avro::decode(d, v.
end);
   336                 ::avro::decode(d, v.
style);
   337                 ::avro::decode(d, v.
path);
   360             info(std::map<std::string, std::string>())
   377         std::map<std::string, std::string> 
info;
   383     template<> 
struct codec_traits<
gpudb::CreateVideoResponse>
   387             ::avro::encode(e, v.
jobId);
   388             ::avro::encode(e, v.
path);
   389             ::avro::encode(e, v.
info);
   394             if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
   396                 const std::vector<size_t> fo = rd->fieldOrder();
   398                 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
   403                             ::avro::decode(d, v.
jobId);
   407                             ::avro::decode(d, v.
path);
   411                             ::avro::decode(d, v.
info);
   421                 ::avro::decode(d, v.
jobId);
   422                 ::avro::decode(d, v.
path);
   423                 ::avro::decode(d, v.
info);
   429 #endif // __CREATE_VIDEO_H__ std::string path
Fully qualified KIFS path to the video file.
 
std::string styleParameters
A string containing the JSON-encoded visualize request.
 
double framesPerSecond
The presentation frame rate of the encoded video in frames per second.
 
std::string path
Fully-qualified KiFS path.
 
CreateVideoRequest(const std::string &attribute_, const std::string &begin_, const double durationSeconds_, const std::string &end_, const double framesPerSecond_, const std::string &style_, const std::string &path_, const std::string &styleParameters_, const std::map< std::string, std::string > &options_)
Constructs a CreateVideoRequest object with the specified parameters.
 
A set of results returned by GPUdb::createVideo.
 
CreateVideoRequest()
Constructs a CreateVideoRequest object with default parameters.
 
std::map< std::string, std::string > info
Additional information.
 
std::string attribute
The animated attribute to map to the video's frames.
 
A set of parameters for GPUdb::createVideo.
 
CreateVideoResponse()
Constructs a CreateVideoResponse object with default parameters.
 
std::string begin
The start point for the video.
 
std::string end
The end point for the video.
 
std::map< std::string, std::string > options
Optional parameters.
 
std::string style
The name of the visualize mode; should correspond to the schema used for the styleParameters field.
 
double durationSeconds
Seconds of video to produce.
 
int64_t jobId
An identifier for the created job.