Skip to main content

◆ createTriggerByArea() [1/4]

CreateTriggerByAreaResponse gpudb::GPUdb::createTriggerByArea (const CreateTriggerByAreaRequest &request_) const

Sets up an area trigger mechanism for two column_names for one or more tables.

(This function is essentially the two-dimensional version of createTriggerByRange.) Once the trigger has been activated, any record added to the listed tables(s) via 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 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.

◆ createTriggerByArea() [2/4]

CreateTriggerByAreaResponse & gpudb::GPUdb::createTriggerByArea (const CreateTriggerByAreaRequest &request_,
CreateTriggerByAreaResponse &response_ ) const

Sets up an area trigger mechanism for two column_names for one or more tables.

(This function is essentially the two-dimensional version of createTriggerByRange.) Once the trigger has been activated, any record added to the listed tables(s) via 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 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).

◆ createTriggerByArea() [3/4]

CreateTriggerByAreaResponse gpudb::GPUdb::createTriggerByArea (const std::string &requestId,
const std::vector< std::string > &tableNames,
const std::string &xColumnName,
const std::vector< double > &xVector,
const std::string &yColumnName,
const std::vector< double > &yVector,
const std::map< std::string, std::string > &options ) const

Sets up an area trigger mechanism for two column_names for one or more tables.

(This function is essentially the two-dimensional version of createTriggerByRange.) Once the trigger has been activated, any record added to the listed tables(s) via 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 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]tableNamesNames of the tables on which the trigger will be activated and maintained, each in [schema_name.]table_name format, using standard name resolution rules.
[in]xColumnNameName of a numeric column on which the trigger is activated. Usually ‘x’ for geospatial data points.
[in]xVectorThe respective coordinate values for the region on which the trigger is activated. This usually translates to the x-coordinates of a geospatial region.
[in]yColumnNameName of a second numeric column on which the trigger is activated. Usually ‘y’ for geospatial data points.
[in]yVectorThe 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.
[in]optionsOptional parameters. The default value is an empty map.
Returns
Response object containing the result of the operation.

◆ createTriggerByArea() [4/4]

CreateTriggerByAreaResponse & gpudb::GPUdb::createTriggerByArea (const std::string &requestId,
const std::vector< std::string > &tableNames,
const std::string &xColumnName,
const std::vector< double > &xVector,
const std::string &yColumnName,
const std::vector< double > &yVector,
const std::map< std::string, std::string > &options,
CreateTriggerByAreaResponse &response_ ) const

Sets up an area trigger mechanism for two column_names for one or more tables.

(This function is essentially the two-dimensional version of createTriggerByRange.) Once the trigger has been activated, any record added to the listed tables(s) via 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 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]tableNamesNames of the tables on which the trigger will be activated and maintained, each in [schema_name.]table_name format, using standard name resolution rules.
[in]xColumnNameName of a numeric column on which the trigger is activated. Usually ‘x’ for geospatial data points.
[in]xVectorThe respective coordinate values for the region on which the trigger is activated. This usually translates to the x-coordinates of a geospatial region.
[in]yColumnNameName of a second numeric column on which the trigger is activated. Usually ‘y’ for geospatial data points.
[in]yVectorThe 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.
[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).