public class CreateVideoRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.createVideo(CreateVideoRequest)
.
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
Optional parameters.
|
static class |
CreateVideoRequest.Style
The name of the visualize mode; should correspond to the schema used for
the
styleParameters field. |
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() |
String |
getBegin() |
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() |
String |
getEnd() |
double |
getFramesPerSecond() |
Map<String,String> |
getOptions() |
String |
getPath() |
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
String |
getStyle() |
String |
getStyleParameters() |
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) |
CreateVideoRequest |
setBegin(String begin) |
CreateVideoRequest |
setDurationSeconds(double durationSeconds) |
CreateVideoRequest |
setEnd(String end) |
CreateVideoRequest |
setFramesPerSecond(double framesPerSecond) |
CreateVideoRequest |
setOptions(Map<String,String> options) |
CreateVideoRequest |
setPath(String path) |
CreateVideoRequest |
setStyle(String style) |
CreateVideoRequest |
setStyleParameters(String styleParameters) |
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()
public CreateVideoRequest setAttribute(String attribute)
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.this
to mimic the builder pattern.public String getBegin()
attribute
.public CreateVideoRequest setBegin(String begin)
begin
- The start point for the video. Accepts an expression
evaluable over the attribute
.this
to mimic the builder pattern.public double getDurationSeconds()
public CreateVideoRequest setDurationSeconds(double durationSeconds)
durationSeconds
- Seconds of video to producethis
to mimic the builder pattern.public String getEnd()
attribute
.public CreateVideoRequest setEnd(String end)
end
- The end point for the video. Accepts an expression evaluable
over the attribute
.this
to mimic the builder pattern.public double getFramesPerSecond()
public CreateVideoRequest setFramesPerSecond(double framesPerSecond)
framesPerSecond
- The presentation frame rate of the encoded video
in frames per second.this
to mimic the builder pattern.public String getStyle()
public CreateVideoRequest setStyle(String style)
public String getPath()
replace_if_exists
is
true
.public CreateVideoRequest setPath(String path)
path
- Fully-qualified KiFS path. Write access is required. A
file must not exist at that path, unless replace_if_exists
is true
.this
to mimic the builder pattern.public String getStyleParameters()
style
field.public CreateVideoRequest setStyleParameters(String styleParameters)
styleParameters
- A string containing the JSON-encoded visualize
request. Must correspond to the visualize mode
specified in the style
field.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
.public CreateVideoRequest setOptions(Map<String,String> options)
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
.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 © 2024. All rights reserved.