createTriggerByRange
public CreateTriggerByRangeResponse createTriggerByRange(CreateTriggerByRangeRequest request) throws GPUdbException 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) viainsertRecordswith 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 viashowSystemStatus) for any listening client to collect. Active triggers can be cancelled by using theclearTriggerendpoint or by clearing all relevant tables.The output returns the trigger handle as well as indicating success or failure of the trigger activation.
Parameters:request-Requestobject containing the parameters for the operation.Returns:Responseobject containing the results of the operation.Throws:GPUdbException- if an error occurs during the operation.createTriggerByRange
public CreateTriggerByRangeResponse createTriggerByRange(String requestId, List<String> tableNames, String columnName, double min, double max, Map<String, String> options) throws GPUdbException 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) viainsertRecordswith 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 viashowSystemStatus) for any listening client to collect. Active triggers can be cancelled by using theclearTriggerendpoint or by clearing all relevant tables.The output returns the trigger handle as well as indicating success or failure of the trigger activation.
Parameters: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 emptyMap.Returns:Responseobject containing the results of the operation.Throws:GPUdbException- if an error occurs during the operation.