public class CreateVideoRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.createVideo
.
Creates a job to generate a sequence of raster images that visualize data over a specified time.
Modifier and Type | Class and Description |
---|---|
static class |
CreateVideoRequest.Options
A set of string constants for the
CreateVideoRequest parameter
options . |
static class |
CreateVideoRequest.Style
A set of string constants for the
CreateVideoRequest parameter
style . |
Constructor and 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.
|
Modifier and Type | Method and Description | ||
---|---|---|---|
boolean |
equals(Object obj) |
||
Object |
get(int index)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
||
String |
getAttribute()
The animated attribute to map to the video's frames.
|
||
String |
getBegin()
The start point for the video.
|
||
static org.apache.avro.Schema |
getClassSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
||
double |
getDurationSeconds()
Seconds of video to produce
|
||
String |
getEnd()
The end point for the video.
|
||
double |
getFramesPerSecond()
The presentation frame rate of the encoded video in frames per second.
|
||
Map<String,String> |
getOptions()
Optional parameters.
|
||
String |
getPath()
Fully-qualified
org.apache.avro.Schema getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
| ||
String |
getStyle()
The name of the visualize mode; should correspond to the schema used for
the
styleParameters field. |
||
String |
getStyleParameters()
A string containing the JSON-encoded visualize request.
|
||
int |
hashCode() |
||
void |
put(int index,
Object value)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
||
CreateVideoRequest |
setAttribute(String attribute)
The animated attribute to map to the video's frames.
|
||
CreateVideoRequest |
setBegin(String begin)
The start point for the video.
|
||
CreateVideoRequest |
setDurationSeconds(double durationSeconds)
Seconds of video to produce
|
||
CreateVideoRequest |
setEnd(String end)
The end point for the video.
|
||
CreateVideoRequest |
setFramesPerSecond(double framesPerSecond)
The presentation frame rate of the encoded video in frames per second.
|
||
CreateVideoRequest |
setOptions(Map<String,String> options)
Optional parameters.
|
||
CreateVideoRequest |
setPath(String path)
Fully-qualified
CreateVideoRequest setStyle(String style)
The name of the visualize mode; should correspond to the schema used for
the
styleParameters field. | ||
CreateVideoRequest |
setStyleParameters(String styleParameters)
A string containing the JSON-encoded visualize request.
|
||
String |
toString() |
public CreateVideoRequest()
public CreateVideoRequest(String attribute, String begin, double durationSeconds, String end, double framesPerSecond, String style, String path, String styleParameters, Map<String,String> options)
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 the attribute
.durationSeconds
- Seconds of video to produceend
- The end point for the video. Accepts an expression evaluable
over the attribute
.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 the styleParameters
field.
Supported values:
path
- Fully-qualified KiFS path. Write access is required. A
file must not exist at that path, unless REPLACE_IF_EXISTS
is TRUE
.styleParameters
- A string containing the JSON-encoded visualize
request. Must correspond to the visualize mode
specified in the style
field.options
- Optional parameters.
TTL
: Sets the TTL of the video.
WINDOW
: Specified using
the data-type corresponding to the attribute
. 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
: If TRUE
, does not return an error if the video
already exists. Ignored if REPLACE_IF_EXISTS
is
TRUE
.
Supported values:
The default value is FALSE
.
REPLACE_IF_EXISTS
: If TRUE
, deletes any existing video with the same
path before creating a new video.
Supported values:
The default value is FALSE
.
Map
.public static org.apache.avro.Schema getClassSchema()
public String getAttribute()
attribute
.public CreateVideoRequest setAttribute(String attribute)
attribute
- The new value for attribute
.this
to mimic the builder pattern.public String getBegin()
attribute
.begin
.public CreateVideoRequest setBegin(String begin)
attribute
.begin
- The new value for begin
.this
to mimic the builder pattern.public double getDurationSeconds()
durationSeconds
.public CreateVideoRequest setDurationSeconds(double durationSeconds)
durationSeconds
- The new value for durationSeconds
.this
to mimic the builder pattern.public String getEnd()
attribute
.end
.public CreateVideoRequest setEnd(String end)
attribute
.end
- The new value for end
.this
to mimic the builder pattern.public double getFramesPerSecond()
framesPerSecond
.public CreateVideoRequest setFramesPerSecond(double framesPerSecond)
framesPerSecond
- The new value for framesPerSecond
.this
to mimic the builder pattern.public String getStyle()
styleParameters
field.
Supported values:
style
.public CreateVideoRequest setStyle(String style)
styleParameters
field.
Supported values:
style
- The new value for style
.this
to mimic the builder pattern.public String getPath()
REPLACE_IF_EXISTS
is TRUE
.path
.public CreateVideoRequest setPath(String path)
REPLACE_IF_EXISTS
is TRUE
.path
- The new value for path
.this
to mimic the builder pattern.public String getStyleParameters()
style
field.styleParameters
.public CreateVideoRequest setStyleParameters(String styleParameters)
style
field.styleParameters
- The new value for styleParameters
.this
to mimic the builder pattern.public Map<String,String> getOptions()
TTL
: Sets the TTL of
the video.
WINDOW
: Specified using the data-type
corresponding to the attribute
. 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
: If TRUE
, does not return an error if the video
already exists. Ignored if REPLACE_IF_EXISTS
is TRUE
.
Supported values:
The default value is FALSE
.
REPLACE_IF_EXISTS
: If TRUE
, deletes any existing video with the same
path before creating a new video.
Supported values:
The default value is FALSE
.
Map
.options
.public CreateVideoRequest setOptions(Map<String,String> options)
TTL
: Sets the TTL of
the video.
WINDOW
: Specified using the data-type
corresponding to the attribute
. 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
: If TRUE
, does not return an error if the video
already exists. Ignored if REPLACE_IF_EXISTS
is TRUE
.
Supported values:
The default value is FALSE
.
REPLACE_IF_EXISTS
: If TRUE
, deletes any existing video with the same
path before creating a new video.
Supported values:
The default value is FALSE
.
Map
.options
- The new value for options
.this
to mimic the builder pattern.public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
public Object get(int index)
get
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to getIndexOutOfBoundsException
public void put(int index, Object value)
put
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to setvalue
- the value to setIndexOutOfBoundsException
Copyright © 2025. All rights reserved.