6 #ifndef __CREATE_TRIGGER_BY_RANGE_H__ 7 #define __CREATE_TRIGGER_BY_RANGE_H__ 45 options(std::map<std::string, std::string>())
68 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_):
116 template<>
struct codec_traits<
gpudb::CreateTriggerByRangeRequest>
123 ::avro::encode(e, v.
min);
124 ::avro::encode(e, v.
max);
130 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
132 const std::vector<size_t> fo = rd->fieldOrder();
134 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
151 ::avro::decode(d, v.
min);
155 ::avro::decode(d, v.
max);
172 ::avro::decode(d, v.
min);
173 ::avro::decode(d, v.
max);
195 info(std::map<std::string, std::string>())
208 std::map<std::string, std::string>
info;
214 template<>
struct codec_traits<
gpudb::CreateTriggerByRangeResponse>
219 ::avro::encode(e, v.
info);
224 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
226 const std::vector<size_t> fo = rd->fieldOrder();
228 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
237 ::avro::decode(d, v.
info);
248 ::avro::decode(d, v.
info);
254 #endif // __CREATE_TRIGGER_BY_RANGE_H__ A set of parameters for GPUdb::createTriggerByRange.
std::map< std::string, std::string > info
Additional information.
std::string triggerId
Value of requestId.
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
Tables on which the trigger will be active, each in [ schema_name.
double max
The upper bound (inclusive) for the trigger range.
std::string columnName
Name of a numeric column_name on which the trigger is activated.
CreateTriggerByRangeRequest()
Constructs a CreateTriggerByRangeRequest object with default parameters.
CreateTriggerByRangeResponse()
Constructs a CreateTriggerByRangeResponse object with default parameters.
double min
The lower bound (inclusive) for the trigger range.
std::map< std::string, std::string > options
Optional parameters.
std::string requestId
User-created ID for the trigger.
A set of results returned by GPUdb::createTriggerByRange.