Skip to main content

◆ createTriggerByRange() [1/4]

CreateTriggerByRangeResponse gpudb::GPUdb::createTriggerByRange (const CreateTriggerByRangeRequest &request_) const

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 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 showSystemStatus) for any listening client to collect. Active triggers can be cancelled by using the 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.

Parameters
[in]request_Request object containing the parameters for the operation.
Returns
Response object containing the result of the operation.

◆ createTriggerByRange() [2/4]

CreateTriggerByRangeResponse & gpudb::GPUdb::createTriggerByRange (const CreateTriggerByRangeRequest &request_,
CreateTriggerByRangeResponse &response_ ) const

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 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 showSystemStatus) for any listening client to collect. Active triggers can be cancelled by using the 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.

Parameters
[in]request_Request object containing the parameters for the operation.
[out]response_Response object containing the results of the operation.
Returns
Response object containing the result of the operation (initially passed in by reference).

◆ createTriggerByRange() [3/4]

CreateTriggerByRangeResponse gpudb::GPUdb::createTriggerByRange (const std::string &requestId,
const std::vector< std::string > &tableNames,
const std::string &columnName,
const doublemin,
const doublemax,
const std::map< std::string, std::string > &options ) const

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 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 showSystemStatus) for any listening client to collect. Active triggers can be cancelled by using the 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.

Parameters
[in]requestIdUser-created ID for the trigger. The ID can be alphanumeric, contain symbols, and must contain at least one character.
[in]tableNamesTables on which the trigger will be active, each in [schema_name.]table_name format, using standard name resolution rules.
[in]columnNameName of a numeric column_name on which the trigger is activated.
[in]minThe lower bound (inclusive) for the trigger range.
[in]maxThe upper bound (inclusive) for the trigger range.
[in]optionsOptional parameters. The default value is an empty map.
Returns
Response object containing the result of the operation.

◆ createTriggerByRange() [4/4]

CreateTriggerByRangeResponse & gpudb::GPUdb::createTriggerByRange (const std::string &requestId,
const std::vector< std::string > &tableNames,
const std::string &columnName,
const doublemin,
const doublemax,
const std::map< std::string, std::string > &options,
CreateTriggerByRangeResponse &response_ ) const

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 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 showSystemStatus) for any listening client to collect. Active triggers can be cancelled by using the 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.

Parameters
[in]requestIdUser-created ID for the trigger. The ID can be alphanumeric, contain symbols, and must contain at least one character.
[in]tableNamesTables on which the trigger will be active, each in [schema_name.]table_name format, using standard name resolution rules.
[in]columnNameName of a numeric column_name on which the trigger is activated.
[in]minThe lower bound (inclusive) for the trigger range.
[in]maxThe upper bound (inclusive) for the trigger range.
[in]optionsOptional parameters. The default value is an empty map.
[out]response_Response object containing the results of the operation.
Returns
Response object containing the result of the operation (initially passed in by reference).