public class CreateTriggerByAreaRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.createTriggerByArea(CreateTriggerByAreaRequest)
.
GPUdb.createTriggerByRange(CreateTriggerByRangeRequest)
.) Once the trigger has been
activated, any record added to the listed tables(s) via GPUdb.insertRecordsRaw(RawInsertRecordsRequest)
with
the chosen columns' values falling within the specified region will trip the trigger. All such records will be queued at GPUdb's
trigger port-by default '9001' but can also be obtained via GPUdb.showSystemStatus(ShowSystemStatusRequest)
-for
any listening client to collect. Active triggers can be cancelled by using the GPUdb.clearTrigger(ClearTriggerRequest)
endpoint or by clearing all relevant tables.
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() |
String |
getRequestId() |
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() |
String |
getXColumnName() |
List<Double> |
getXVector() |
String |
getYColumnName() |
List<Double> |
getYVector() |
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) |
CreateTriggerByAreaRequest |
setRequestId(String requestId) |
CreateTriggerByAreaRequest |
setTableNames(List<String> tableNames) |
CreateTriggerByAreaRequest |
setXColumnName(String xColumnName) |
CreateTriggerByAreaRequest |
setXVector(List<Double> xVector) |
CreateTriggerByAreaRequest |
setYColumnName(String yColumnName) |
CreateTriggerByAreaRequest |
setYVector(List<Double> yVector) |
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
- ID for the trigger to be activated.tableNames
- Names of the tables on which the trigger will be activated and maintained.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.public static org.apache.avro.Schema getClassSchema()
public String getRequestId()
public CreateTriggerByAreaRequest setRequestId(String requestId)
requestId
- ID for the trigger to be activated.this
to mimic the builder pattern.public List<String> getTableNames()
public CreateTriggerByAreaRequest setTableNames(List<String> tableNames)
tableNames
- Names of the tables on which the trigger will be activated and maintained.this
to mimic the builder pattern.public String getXColumnName()
public CreateTriggerByAreaRequest setXColumnName(String xColumnName)
xColumnName
- Name of a numeric column on which the trigger is activated. Usually 'x' for geospatial data points.this
to mimic the builder pattern.public List<Double> getXVector()
public CreateTriggerByAreaRequest setXVector(List<Double> xVector)
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.this
to mimic the builder pattern.public String getYColumnName()
public CreateTriggerByAreaRequest setYColumnName(String yColumnName)
yColumnName
- Name of a second numeric column on which the trigger is activated. Usually 'y' for geospatial data
points.this
to mimic the builder pattern.public List<Double> getYVector()
public CreateTriggerByAreaRequest setYVector(List<Double> yVector)
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.this
to mimic the builder pattern.public CreateTriggerByAreaRequest setOptions(Map<String,String> options)
options
- Optional parameters.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 © 2016. All rights reserved.