◆ 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.
| [in] | request_ | Request object containing the parameters for 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.
◆ 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.
| [in] | tableName | Name of the table to monitor, in [schema_name.]table_name format, using standard name resolution rules. |
| [in] | options | Optional parameters.
|
◆ 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.
| [in] | tableName | Name of the table to monitor, in [schema_name.]table_name format, using standard name resolution rules. |
| [in] | options | Optional parameters.
|
| [out] | response_ | Response object containing the results of the operation. |