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.IndexedRecord
public class CreateVideoRequest extends Object implements org.apache.avro.generic.IndexedRecord
A set of parameters forGPUdb.createVideo.Creates a job to generate a sequence of raster images that visualize data over a specified time.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateVideoRequest.OptionsA set of string constants for theCreateVideoRequestparameteroptions.static classCreateVideoRequest.StyleA set of string constants for theCreateVideoRequestparameterstyle.
-
Constructor Summary
Constructors Constructor Description CreateVideoRequest()Constructs 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Objectget(int index)This method supports the Avro framework and is not intended to be called directly by the user.StringgetAttribute()The animated attribute to map to the video's frames.StringgetBegin()The start point for the video.static org.apache.avro.SchemagetClassSchema()This method supports the Avro framework and is not intended to be called directly by the user.doublegetDurationSeconds()Seconds of video to produceStringgetEnd()The end point for the video.doublegetFramesPerSecond()The presentation frame rate of the encoded video in frames per second.Map<String,String>getOptions()Optional parameters.StringgetPath()Fully-qualified KiFS path.org.apache.avro.SchemagetSchema()This method supports the Avro framework and is not intended to be called directly by the user.StringgetStyle()The name of the visualize mode; should correspond to the schema used for thestyleParametersfield.StringgetStyleParameters()A string containing the JSON-encoded visualize request.inthashCode()voidput(int index, Object value)This method supports the Avro framework and is not intended to be called directly by the user.CreateVideoRequestsetAttribute(String attribute)The animated attribute to map to the video's frames.CreateVideoRequestsetBegin(String begin)The start point for the video.CreateVideoRequestsetDurationSeconds(double durationSeconds)Seconds of video to produceCreateVideoRequestsetEnd(String end)The end point for the video.CreateVideoRequestsetFramesPerSecond(double framesPerSecond)The presentation frame rate of the encoded video in frames per second.CreateVideoRequestsetOptions(Map<String,String> options)Optional parameters.CreateVideoRequestsetPath(String path)Fully-qualified KiFS path.CreateVideoRequestsetStyle(String style)The name of the visualize mode; should correspond to the schema used for thestyleParametersfield.CreateVideoRequestsetStyleParameters(String styleParameters)A string containing the JSON-encoded visualize request.StringtoString()
-
-
-
Constructor Detail
-
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 produceend- 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 Detail
-
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.
-
getAttribute
public String getAttribute()
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.- Returns:
- The current value of
attribute.
-
setAttribute
public CreateVideoRequest setAttribute(String 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.- Parameters:
attribute- The new value forattribute.- Returns:
thisto mimic the builder pattern.
-
getBegin
public String getBegin()
The start point for the video. Accepts an expression evaluable over theattribute.- Returns:
- The current value of
begin.
-
setBegin
public CreateVideoRequest setBegin(String begin)
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 of
durationSeconds.
-
setDurationSeconds
public CreateVideoRequest setDurationSeconds(double durationSeconds)
Seconds of video to produce- Parameters:
durationSeconds- The new value fordurationSeconds.- Returns:
thisto mimic the builder pattern.
-
getEnd
public String getEnd()
The end point for the video. Accepts an expression evaluable over theattribute.- Returns:
- The current value of
end.
-
setEnd
public CreateVideoRequest setEnd(String end)
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 of
framesPerSecond.
-
setFramesPerSecond
public CreateVideoRequest setFramesPerSecond(double framesPerSecond)
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
public String getStyle()
The name of the visualize mode; should correspond to the schema used for thestyleParametersfield. Supported values:- Returns:
- The current value of
style.
-
setStyle
public CreateVideoRequest setStyle(String style)
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
public String getPath()
Fully-qualified KiFS path. Write access is required. A file must not exist at that path, unlessREPLACE_IF_EXISTSisTRUE.- Returns:
- The current value of
path.
-
setPath
public CreateVideoRequest setPath(String path)
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.
-
getStyleParameters
public String getStyleParameters()
A string containing the JSON-encoded visualize request. Must correspond to the visualize mode specified in thestylefield.- Returns:
- The current value of
styleParameters.
-
setStyleParameters
public CreateVideoRequest setStyleParameters(String styleParameters)
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
public Map<String,String> 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 of
options.
-
setOptions
public CreateVideoRequest setOptions(Map<String,String> 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.- 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.GenericContainer- Returns:
- The schema object describing this class.
-
get
public Object get(int index)
This method supports the Avro framework and is not intended to be called directly by the user.- Specified by:
getin interfaceorg.apache.avro.generic.IndexedRecord- Parameters:
index- the position of the field to get- Returns:
- value of the field with the given index.
- Throws:
IndexOutOfBoundsException
-
put
public void put(int index, Object value)This method supports the Avro framework and is not intended to be called directly by the user.- Specified by:
putin interfaceorg.apache.avro.generic.IndexedRecord- Parameters:
index- the position of the field to setvalue- the value to set- Throws:
IndexOutOfBoundsException
-
-