6 #ifndef __SHOW_TRIGGERS_H__ 7 #define __SHOW_TRIGGERS_H__ 26 options(std::map<std::string, std::string>())
41 ShowTriggersRequest(
const std::vector<std::string>& triggerIds_,
const std::map<std::string, std::string>& options_):
57 std::map<std::string, std::string>
options;
63 template<>
struct codec_traits<
gpudb::ShowTriggersRequest>
73 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
75 const std::vector<size_t> fo = rd->fieldOrder();
77 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
116 triggerMap(std::map<std::string, std::map<std::string, std::string> >()),
117 info(std::map<std::string, std::string>())
133 std::map<std::string, std::map<std::string, std::string> >
triggerMap;
138 std::map<std::string, std::string>
info;
144 template<>
struct codec_traits<
gpudb::ShowTriggersResponse>
149 ::avro::encode(e, v.
info);
154 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
156 const std::vector<size_t> fo = rd->fieldOrder();
158 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
167 ::avro::decode(d, v.
info);
178 ::avro::decode(d, v.
info);
184 #endif // __SHOW_TRIGGERS_H__
ShowTriggersResponse()
Constructs a ShowTriggersResponse object with default parameters.
std::map< std::string, std::map< std::string, std::string > > triggerMap
This dictionary contains (key, value) pairs of (trigger ID, information map/dictionary) where the key...
A set of parameters for GPUdb::showTriggers.
std::vector< std::string > triggerIds
List of IDs of the triggers whose information is to be retrieved.
ShowTriggersRequest(const std::vector< std::string > &triggerIds_, const std::map< std::string, std::string > &options_)
Constructs a ShowTriggersRequest object with the specified parameters.
std::map< std::string, std::string > options
Optional parameters.
A set of results returned by GPUdb::showTriggers.
std::map< std::string, std::string > info
Additional information.
ShowTriggersRequest()
Constructs a ShowTriggersRequest object with default parameters.