Skip to main content

◆ createTableMonitor() [1/4]

CreateTableMonitorResponse gpudb::GPUdb::createTableMonitor (const CreateTableMonitorRequest &request_) const

Creates a monitor that watches for a single table modification event type (insert, update, or delete) on a particular table (identified by tableName) and forwards event notifications to subscribers via ZMQ.

After this call completes, subscribe to the returned topicId on the ZMQ table monitor port (default 9002). Each time an operation of the given type on the table completes, a multipart message is published for that topic; the first part contains only the topic ID, and each subsequent part contains one binary-encoded Avro object that corresponds to the event and can be decoded using typeSchema. The monitor will continue to run (regardless of whether or not there are any subscribers) until deactivated with clearTableMonitor.

For more information on table monitors, see Table Monitors.

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

◆ createTableMonitor() [2/4]

CreateTableMonitorResponse & gpudb::GPUdb::createTableMonitor (const CreateTableMonitorRequest &request_,
CreateTableMonitorResponse &response_ ) const

Creates a monitor that watches for a single table modification event type (insert, update, or delete) on a particular table (identified by tableName) and forwards event notifications to subscribers via ZMQ.

After this call completes, subscribe to the returned topicId on the ZMQ table monitor port (default 9002). Each time an operation of the given type on the table completes, a multipart message is published for that topic; the first part contains only the topic ID, and each subsequent part contains one binary-encoded Avro object that corresponds to the event and can be decoded using typeSchema. The monitor will continue to run (regardless of whether or not there are any subscribers) until deactivated with clearTableMonitor.

For more information on table monitors, see Table Monitors.

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).

◆ createTableMonitor() [3/4]

CreateTableMonitorResponse gpudb::GPUdb::createTableMonitor (const std::string &tableName,
const std::map< std::string, std::string > &options ) const

Creates a monitor that watches for a single table modification event type (insert, update, or delete) on a particular table (identified by tableName) and forwards event notifications to subscribers via ZMQ.

After this call completes, subscribe to the returned topicId on the ZMQ table monitor port (default 9002). Each time an operation of the given type on the table completes, a multipart message is published for that topic; the first part contains only the topic ID, and each subsequent part contains one binary-encoded Avro object that corresponds to the event and can be decoded using typeSchema. The monitor will continue to run (regardless of whether or not there are any subscribers) until deactivated with clearTableMonitor.

For more information on table monitors, see Table Monitors.

Parameters
[in]tableNameName of the table to monitor, in [schema_name.]table_name format, using standard name resolution rules.
[in]optionsOptional parameters.The default value is an empty map.
Returns
Response object containing the result of the operation.

◆ createTableMonitor() [4/4]

CreateTableMonitorResponse & gpudb::GPUdb::createTableMonitor (const std::string &tableName,
const std::map< std::string, std::string > &options,
CreateTableMonitorResponse &response_ ) const

Creates a monitor that watches for a single table modification event type (insert, update, or delete) on a particular table (identified by tableName) and forwards event notifications to subscribers via ZMQ.

After this call completes, subscribe to the returned topicId on the ZMQ table monitor port (default 9002). Each time an operation of the given type on the table completes, a multipart message is published for that topic; the first part contains only the topic ID, and each subsequent part contains one binary-encoded Avro object that corresponds to the event and can be decoded using typeSchema. The monitor will continue to run (regardless of whether or not there are any subscribers) until deactivated with clearTableMonitor.

For more information on table monitors, see Table Monitors.

Parameters
[in]tableNameName of the table to monitor, in [schema_name.]table_name format, using standard name resolution rules.
[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).