6 #ifndef __CREATE_TRIGGER_BY_RANGE_H__
7 #define __CREATE_TRIGGER_BY_RANGE_H__
49 options(std::map<std::string, std::string>())
72 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_):
87 std::map<std::string, std::string>
options;
93 template<>
struct codec_traits<gpudb::CreateTriggerByRangeRequest>
100 ::avro::encode(e, v.
min);
101 ::avro::encode(e, v.
max);
107 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
109 const std::vector<size_t> fo = rd->fieldOrder();
111 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
128 ::avro::decode(d, v.
min);
132 ::avro::decode(d, v.
max);
149 ::avro::decode(d, v.
min);
150 ::avro::decode(d, v.
max);
193 info(std::map<std::string, std::string>())
198 std::map<std::string, std::string>
info;
204 template<>
struct codec_traits<gpudb::CreateTriggerByRangeResponse>
209 ::avro::encode(e, v.
info);
214 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
216 const std::vector<size_t> fo = rd->fieldOrder();
218 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
227 ::avro::decode(d, v.
info);
238 ::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.