GPUdb C++ API  Version 5.2.0.0
gpudb::CreateTriggerByRangeRequest Struct Reference

A set of input parameters for createTriggerByRange(const CreateTriggerByRangeRequest&) const. More...

#include <gpudb/protocol/create_trigger_by_range.h>

Public Member Functions

 CreateTriggerByRangeRequest ()
 Constructs a CreateTriggerByRangeRequest object with default parameter values. More...
 
 CreateTriggerByRangeRequest (const std::string &requestId, const std::vector< std::string > &tableNames, const std::string &columnName, const double min, const double max, const std::map< std::string, std::string > &options)
 Constructs a CreateTriggerByRangeRequest object with the specified parameters. More...
 

Public Attributes

std::string requestId
 
std::vector< std::string > tableNames
 
std::string columnName
 
double min
 
double max
 
std::map< std::string, std::string > options
 

Detailed Description

A set of input parameters for createTriggerByRange(const CreateTriggerByRangeRequest&) 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 insertRecordsRaw(const RawInsertRecordsRequest&) const with the chosen column_name's value falling within the specified range will trip the trigger. All such records will be queued at GPUdb's trigger port-by default '9001' but can also be obtained via showSystemStatus(const ShowSystemStatusRequest&) const-for any listening client to collect. Active triggers can be cancelled by using the clearTrigger(const ClearTriggerRequest&) const endpoint or by clearing all relevant tables.

The output returns the trigger handle as well as indicating success or failure of the trigger activation.

Definition at line 31 of file create_trigger_by_range.h.

Constructor & Destructor Documentation

gpudb::CreateTriggerByRangeRequest::CreateTriggerByRangeRequest ( )
inline

Constructs a CreateTriggerByRangeRequest object with default parameter values.

Definition at line 38 of file create_trigger_by_range.h.

gpudb::CreateTriggerByRangeRequest::CreateTriggerByRangeRequest ( const std::string &  requestId,
const std::vector< std::string > &  tableNames,
const std::string &  columnName,
const double  min,
const double  max,
const std::map< std::string, std::string > &  options 
)
inline

Constructs a CreateTriggerByRangeRequest object with the specified parameters.

Parameters
[in]requestIdID for the trigger request.
[in]tableNamesTables on which the trigger will be active.
[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. Default value is an empty std::map.

Definition at line 62 of file create_trigger_by_range.h.

Member Data Documentation

std::string gpudb::CreateTriggerByRangeRequest::columnName

Definition at line 74 of file create_trigger_by_range.h.

double gpudb::CreateTriggerByRangeRequest::max

Definition at line 76 of file create_trigger_by_range.h.

double gpudb::CreateTriggerByRangeRequest::min

Definition at line 75 of file create_trigger_by_range.h.

std::map<std::string, std::string> gpudb::CreateTriggerByRangeRequest::options

Definition at line 77 of file create_trigger_by_range.h.

std::string gpudb::CreateTriggerByRangeRequest::requestId

Definition at line 72 of file create_trigger_by_range.h.

std::vector<std::string> gpudb::CreateTriggerByRangeRequest::tableNames

Definition at line 73 of file create_trigger_by_range.h.


The documentation for this struct was generated from the following file: