Package com.gpudb.protocol
Class CreateVideoRequest
java.lang.Object
com.gpudb.protocol.CreateVideoRequest
All Implemented Interfaces:
org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecordA set of parameters for
GPUdb.createVideo.
Creates a job to generate a sequence of raster images that visualize data over a specified time.
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA set of string constants for theCreateVideoRequestparameteroptions.static final classA set of string constants for theCreateVideoRequestparameterstyle.Constructor Summary
ConstructorsConstructorDescriptionConstructs a CreateVideoRequest object with default parameters.CreateVideoRequest(String attribute, String begin, double durationSeconds, String end, double framesPerSecond, String style, String path, String styleParameters, Map<String, String> options) Constructs a CreateVideoRequest object with the specified parameters.Method Summary
Modifier and TypeMethodDescriptionbooleanget(int index) This method supports the Avro framework and is not intended to be called directly by the user.The animated attribute to map to the video’s frames.getBegin()The start point for the video.static org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.doubleSeconds of video to produce.getEnd()The end point for the video.doubleThe presentation frame rate of the encoded video in frames per second.Optional parameters.getPath()Fully-qualified KiFS path.org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.getStyle()The name of the visualize mode; should correspond to the schema used for thestyleParametersfield.A string containing the JSON-encoded visualize request.inthashCode()voidThis method supports the Avro framework and is not intended to be called directly by the user.setAttribute(String attribute) The animated attribute to map to the video’s frames.The start point for the video.setDurationSeconds(double durationSeconds) Seconds of video to produce.The end point for the video.setFramesPerSecond(double framesPerSecond) The presentation frame rate of the encoded video in frames per second.setOptions(Map<String, String> options) Optional parameters.Fully-qualified KiFS path.The name of the visualize mode; should correspond to the schema used for thestyleParametersfield.setStyleParameters(String styleParameters) A string containing the JSON-encoded visualize request.toString()
Constructor Details
CreateVideoRequest
public CreateVideoRequest()Constructs a CreateVideoRequest object with default parameters.CreateVideoRequest
public CreateVideoRequest(String attribute, String begin, double durationSeconds, String end, double framesPerSecond, String style, String path, String styleParameters, Map<String, String> options) Constructs a CreateVideoRequest object with the specified parameters.Parameters:attribute- The animated attribute to map to the video’s frames. Must be present in the LAYERS specified for the visualization. This is often a time-related field but may be any numeric type.begin- The start point for the video. Accepts an expression evaluable over theattribute.durationSeconds- Seconds of video to produce.end- The end point for the video. Accepts an expression evaluable over theattribute.framesPerSecond- The presentation frame rate of the encoded video in frames per second.style- The name of the visualize mode; should correspond to the schema used for thestyleParametersfield. Supported values:path- Fully-qualified KiFS path. Write access is required. A file must not exist at that path, unlessREPLACE_IF_EXISTSisTRUE.styleParameters- A string containing the JSON-encoded visualize request. Must correspond to the visualize mode specified in thestylefield.options- Optional parameters.TTL: Sets the TTL of the video.WINDOW: Specified using the data-type corresponding to theattribute. For a window of size W, a video frame rendered for time t will visualize data in the interval [t-W,t]. The minimum window size is the interval between successive frames. The minimum value is the default. If a value less than the minimum value is specified, it is replaced with the minimum window size. Larger values will make changes throughout the video appear more smooth while smaller values will capture fast variations in the data.NO_ERROR_IF_EXISTS: IfTRUE, does not return an error if the video already exists. Ignored ifREPLACE_IF_EXISTSisTRUE. Supported values:The default value isFALSE.REPLACE_IF_EXISTS: IfTRUE, deletes any existing video with the same path before creating a new video. Supported values:The default value isFALSE.
Map.
Method Details
getClassSchema
public static org.apache.avro.Schema getClassSchema()This method supports the Avro framework and is not intended to be called directly by the user.Returns:The schema for the class.setAttribute
The animated attribute to map to the video’s frames. Must be present in the LAYERS specified for the visualization. This is often a time-related field but may be any numeric type.Parameters:attribute- The new value forattribute.Returns:thisto mimic the builder pattern.setBegin
The start point for the video. Accepts an expression evaluable over theattribute.Parameters:begin- The new value forbegin.Returns:thisto mimic the builder pattern.getDurationSeconds
public double getDurationSeconds()Seconds of video to produce.Returns:The current value ofdurationSeconds.setDurationSeconds
Seconds of video to produce.Parameters:durationSeconds- The new value fordurationSeconds.Returns:thisto mimic the builder pattern.setEnd
The end point for the video. Accepts an expression evaluable over theattribute.Parameters:end- The new value forend.Returns:thisto mimic the builder pattern.getFramesPerSecond
public double getFramesPerSecond()The presentation frame rate of the encoded video in frames per second.Returns:The current value offramesPerSecond.setFramesPerSecond
The presentation frame rate of the encoded video in frames per second.Parameters:framesPerSecond- The new value forframesPerSecond.Returns:thisto mimic the builder pattern.getStyle
The name of the visualize mode; should correspond to the schema used for thestyleParametersfield. Supported values:Returns:The current value ofstyle.setStyle
The name of the visualize mode; should correspond to the schema used for thestyleParametersfield. Supported values:Parameters:style- The new value forstyle.Returns:thisto mimic the builder pattern.getPath
Fully-qualified KiFS path. Write access is required. A file must not exist at that path, unlessREPLACE_IF_EXISTSisTRUE.Returns:The current value ofpath.setPath
Fully-qualified KiFS path. Write access is required. A file must not exist at that path, unlessREPLACE_IF_EXISTSisTRUE.Parameters:path- The new value forpath.Returns:thisto mimic the builder pattern.setStyleParameters
A string containing the JSON-encoded visualize request. Must correspond to the visualize mode specified in thestylefield.Parameters:styleParameters- The new value forstyleParameters.Returns:thisto mimic the builder pattern.getOptions
Optional parameters.TTL: Sets the TTL of the video.WINDOW: Specified using the data-type corresponding to theattribute. For a window of size W, a video frame rendered for time t will visualize data in the interval [t-W,t]. The minimum window size is the interval between successive frames. The minimum value is the default. If a value less than the minimum value is specified, it is replaced with the minimum window size. Larger values will make changes throughout the video appear more smooth while smaller values will capture fast variations in the data.NO_ERROR_IF_EXISTS: IfTRUE, does not return an error if the video already exists. Ignored ifREPLACE_IF_EXISTSisTRUE. Supported values:The default value isFALSE.REPLACE_IF_EXISTS: IfTRUE, deletes any existing video with the same path before creating a new video. Supported values:The default value isFALSE.
Map.Returns:The current value ofoptions.setOptions
Optional parameters.TTL: Sets the TTL of the video.WINDOW: Specified using the data-type corresponding to theattribute. For a window of size W, a video frame rendered for time t will visualize data in the interval [t-W,t]. The minimum window size is the interval between successive frames. The minimum value is the default. If a value less than the minimum value is specified, it is replaced with the minimum window size. Larger values will make changes throughout the video appear more smooth while smaller values will capture fast variations in the data.NO_ERROR_IF_EXISTS: IfTRUE, does not return an error if the video already exists. Ignored ifREPLACE_IF_EXISTSisTRUE. Supported values:The default value isFALSE.REPLACE_IF_EXISTS: IfTRUE, deletes any existing video with the same path before creating a new video. Supported values:The default value isFALSE.
Map.Parameters:options- The new value foroptions.Returns:thisto mimic the builder pattern.getSchema
public org.apache.avro.Schema getSchema()This method supports the Avro framework and is not intended to be called directly by the user.Specified by:getSchemain interfaceorg.apache.avro.generic.GenericContainerReturns:The schema object describing this class.get
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:getin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to getReturns:value of the field with the given index.Throws:put
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:putin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to setvalue- the value to setThrows: