public class CreateTriggerByAreaRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.createTriggerByArea
.
Sets up an area trigger mechanism for two column_names for one or more
tables. (This function is essentially the two-dimensional version of GPUdb.createTriggerByRange
.) Once the trigger has been activated, any
record added to the listed tables(s) via GPUdb.insertRecords
with the chosen columns' values falling within the specified region will
trip the trigger. All such records will be queued at the trigger port (by
default '9001' but able to be retrieved via GPUdb.showSystemStatus
) for any listening client to collect. Active
triggers can be cancelled by using the GPUdb.clearTrigger
endpoint or by clearing all relevant tables.
The output returns the trigger handle as well as indicating success or failure of the trigger activation.
Constructor and Description |
---|
CreateTriggerByAreaRequest()
Constructs a CreateTriggerByAreaRequest object with default parameters.
|
CreateTriggerByAreaRequest(String requestId,
List<String> tableNames,
String xColumnName,
List<Double> xVector,
String yColumnName,
List<Double> yVector,
Map<String,String> options)
Constructs a CreateTriggerByAreaRequest 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.
|
||
static org.apache.avro.Schema |
getClassSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
||
Map<String,String> |
getOptions()
Optional parameters.
|
||
String |
getRequestId()
User-created ID for the trigger.
|
||
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
||
List<String> |
getTableNames()
Names of the tables on which the trigger will be activated and
maintained, each in [schema_name.]table_name format, using standard
String getXColumnName()
Name of a numeric column on which the trigger is activated.
| ||
List<Double> |
getXVector()
The respective coordinate values for the region on which the trigger is
activated.
|
||
String |
getYColumnName()
Name of a second numeric column on which the trigger is activated.
|
||
List<Double> |
getYVector()
The respective coordinate values for the region on which the trigger is
activated.
|
||
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.
|
||
CreateTriggerByAreaRequest |
setOptions(Map<String,String> options)
Optional parameters.
|
||
CreateTriggerByAreaRequest |
setRequestId(String requestId)
User-created ID for the trigger.
|
||
CreateTriggerByAreaRequest |
setTableNames(List<String> tableNames)
Names of the tables on which the trigger will be activated and
maintained, each in [schema_name.]table_name format, using standard
CreateTriggerByAreaRequest setXColumnName(String xColumnName)
Name of a numeric column on which the trigger is activated.
| ||
CreateTriggerByAreaRequest |
setXVector(List<Double> xVector)
The respective coordinate values for the region on which the trigger is
activated.
|
||
CreateTriggerByAreaRequest |
setYColumnName(String yColumnName)
Name of a second numeric column on which the trigger is activated.
|
||
CreateTriggerByAreaRequest |
setYVector(List<Double> yVector)
The respective coordinate values for the region on which the trigger is
activated.
|
||
String |
toString() |
public CreateTriggerByAreaRequest()
public CreateTriggerByAreaRequest(String requestId, List<String> tableNames, String xColumnName, List<Double> xVector, String yColumnName, List<Double> yVector, Map<String,String> options)
requestId
- User-created ID for the trigger. The ID can be
alphanumeric, contain symbols, and must contain at
least one character.tableNames
- Names of the tables on which the trigger will be
activated and maintained, each in
[schema_name.]table_name format, using standard name resolution rules.xColumnName
- Name of a numeric column on which the trigger is
activated. Usually 'x' for geospatial data points.xVector
- The respective coordinate values for the region on which
the trigger is activated. This usually translates to the
x-coordinates of a geospatial region.yColumnName
- Name of a second numeric column on which the trigger
is activated. Usually 'y' for geospatial data
points.yVector
- The respective coordinate values for the region on which
the trigger is activated. This usually translates to the
y-coordinates of a geospatial region. Must be the same
length as xvals.options
- Optional parameters. The default value is an empty
Map
.public static org.apache.avro.Schema getClassSchema()
public String getRequestId()
requestId
.public CreateTriggerByAreaRequest setRequestId(String requestId)
requestId
- The new value for requestId
.this
to mimic the builder pattern.public List<String> getTableNames()
tableNames
.public CreateTriggerByAreaRequest setTableNames(List<String> tableNames)
tableNames
- The new value for tableNames
.this
to mimic the builder pattern.public String getXColumnName()
xColumnName
.public CreateTriggerByAreaRequest setXColumnName(String xColumnName)
xColumnName
- The new value for xColumnName
.this
to mimic the builder pattern.public List<Double> getXVector()
xVector
.public CreateTriggerByAreaRequest setXVector(List<Double> xVector)
xVector
- The new value for xVector
.this
to mimic the builder pattern.public String getYColumnName()
yColumnName
.public CreateTriggerByAreaRequest setYColumnName(String yColumnName)
yColumnName
- The new value for yColumnName
.this
to mimic the builder pattern.public List<Double> getYVector()
yVector
.public CreateTriggerByAreaRequest setYVector(List<Double> yVector)
yVector
- The new value for yVector
.this
to mimic the builder pattern.public Map<String,String> getOptions()
Map
.options
.public CreateTriggerByAreaRequest setOptions(Map<String,String> options)
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.