6 #ifndef __CREATE_TRIGGER_BY_RANGE_H__
7 #define __CREATE_TRIGGER_BY_RANGE_H__
44 options(std::map<std::string, std::string>())
63 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_):
78 std::map<std::string, std::string>
options;
84 template<>
struct codec_traits<gpudb::CreateTriggerByRangeRequest>
91 ::avro::encode(e, v.
min);
92 ::avro::encode(e, v.
max);
98 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
100 const std::vector<size_t> fo = rd->fieldOrder();
102 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
119 ::avro::decode(d, v.
min);
123 ::avro::decode(d, v.
max);
140 ::avro::decode(d, v.
min);
141 ::avro::decode(d, v.
max);
179 info(std::map<std::string, std::string>())
184 std::map<std::string, std::string>
info;
190 template<>
struct codec_traits<gpudb::CreateTriggerByRangeResponse>
195 ::avro::encode(e, v.
info);
200 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
202 const std::vector<size_t> fo = rd->fieldOrder();
204 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
213 ::avro::decode(d, v.
info);
224 ::avro::decode(d, v.
info);
A set of input parameters for const.
std::map< std::string, std::string > info
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.
std::vector< std::string > tableNames
CreateTriggerByRangeRequest()
Constructs a CreateTriggerByRangeRequest object with default parameter values.
CreateTriggerByRangeResponse()
Constructs a CreateTriggerByRangeResponse object with default parameter values.
std::map< std::string, std::string > options
A set of output parameters for const.