6 #ifndef __CREATE_TRIGGER_BY_AREA_H__ 7 #define __CREATE_TRIGGER_BY_AREA_H__ 48 options(std::map<std::string, std::string>())
82 CreateTriggerByAreaRequest(
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_):
142 template<>
struct codec_traits<
gpudb::CreateTriggerByAreaRequest>
157 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
159 const std::vector<size_t> fo = rd->fieldOrder();
161 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
227 info(std::map<std::string, std::string>())
240 std::map<std::string, std::string>
info;
246 template<>
struct codec_traits<
gpudb::CreateTriggerByAreaResponse>
251 ::avro::encode(e, v.
info);
256 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
258 const std::vector<size_t> fo = rd->fieldOrder();
260 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
269 ::avro::decode(d, v.
info);
280 ::avro::decode(d, v.
info);
286 #endif // __CREATE_TRIGGER_BY_AREA_H__ std::string yColumnName
Name of a second numeric column on which the trigger is activated.
std::string triggerId
Value of requestId.
CreateTriggerByAreaResponse()
Constructs a CreateTriggerByAreaResponse object with default parameters.
std::map< std::string, std::string > options
Optional parameters.
A set of results returned by GPUdb::createTriggerByArea.
CreateTriggerByAreaRequest()
Constructs a CreateTriggerByAreaRequest object with default parameters.
std::string xColumnName
Name of a numeric column on which the trigger is activated.
std::vector< double > yVector
The respective coordinate values for the region on which the trigger is activated.
std::vector< double > xVector
The respective coordinate values for the region on which the trigger is activated.
std::string requestId
User-created ID for the trigger.
std::vector< std::string > tableNames
Names of the tables on which the trigger will be activated and maintained, each in [ schema_name....
A set of parameters for GPUdb::createTriggerByArea.
CreateTriggerByAreaRequest(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_)
Constructs a CreateTriggerByAreaRequest object with the specified parameters.
std::map< std::string, std::string > info
Additional information.