public class CreateTriggerByRangeRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.createTriggerByRange.
Sets up a simple range trigger for a column_name for one or more tables.
Once the trigger has been activated, any record added to the listed
tables(s) via GPUdb.insertRecords with the chosen column_name's value falling within the
specified range 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 |
|---|
CreateTriggerByRangeRequest()
Constructs a CreateTriggerByRangeRequest object with default parameters.
|
CreateTriggerByRangeRequest(String requestId,
List<String> tableNames,
String columnName,
double min,
double max,
Map<String,String> options)
Constructs a CreateTriggerByRangeRequest 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.
|
||
String |
getColumnName()
Name of a numeric column_name on which the trigger is activated.
|
||
double |
getMax()
The upper bound (inclusive) for the trigger range.
|
||
double |
getMin()
The lower bound (inclusive) for the trigger range.
|
||
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()
Tables on which the trigger will be active, each in
[schema_name.]table_name format, using standard
inthashCode() | ||
void |
put(int index,
Object value)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
||
CreateTriggerByRangeRequest |
setColumnName(String columnName)
Name of a numeric column_name on which the trigger is activated.
|
||
CreateTriggerByRangeRequest |
setMax(double max)
The upper bound (inclusive) for the trigger range.
|
||
CreateTriggerByRangeRequest |
setMin(double min)
The lower bound (inclusive) for the trigger range.
|
||
CreateTriggerByRangeRequest |
setOptions(Map<String,String> options)
Optional parameters.
|
||
CreateTriggerByRangeRequest |
setRequestId(String requestId)
User-created ID for the trigger.
|
||
CreateTriggerByRangeRequest |
setTableNames(List<String> tableNames)
|
public CreateTriggerByRangeRequest()
public CreateTriggerByRangeRequest(String requestId, List<String> tableNames, String columnName, double min, double max, 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 - Tables on which the trigger will be active, each in
[schema_name.]table_name format, using standard name resolution rules.columnName - Name of a numeric column_name on which the trigger is
activated.min - The lower bound (inclusive) for the trigger range.max - The upper bound (inclusive) for the trigger range.options - Optional parameters. The default value is an empty
Map.public static org.apache.avro.Schema getClassSchema()
public String getRequestId()
requestId.public CreateTriggerByRangeRequest setRequestId(String requestId)
requestId - The new value for requestId.this to mimic the builder pattern.public List<String> getTableNames()
tableNames.public CreateTriggerByRangeRequest setTableNames(List<String> tableNames)
tableNames - The new value for tableNames.this to mimic the builder pattern.public String getColumnName()
columnName.public CreateTriggerByRangeRequest setColumnName(String columnName)
columnName - The new value for columnName.this to mimic the builder pattern.public double getMin()
min.public CreateTriggerByRangeRequest setMin(double min)
min - The new value for min.this to mimic the builder pattern.public double getMax()
max.public CreateTriggerByRangeRequest setMax(double max)
max - The new value for max.this to mimic the builder pattern.public Map<String,String> getOptions()
Map.options.public CreateTriggerByRangeRequest 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.GenericContainerpublic Object get(int index)
get in interface org.apache.avro.generic.IndexedRecordindex - the position of the field to getIndexOutOfBoundsExceptionpublic void put(int index,
Object value)
put in interface org.apache.avro.generic.IndexedRecordindex - the position of the field to setvalue - the value to setIndexOutOfBoundsExceptionCopyright © 2025. All rights reserved.