GPUdb C++ API  Version 7.2.2.4
show_triggers.h
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the Kinetica schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 #ifndef __SHOW_TRIGGERS_H__
7 #define __SHOW_TRIGGERS_H__
8 
9 namespace gpudb
10 {
20  {
25  triggerIds(std::vector<std::string>()),
26  options(std::map<std::string, std::string>())
27  {
28  }
29 
41  ShowTriggersRequest(const std::vector<std::string>& triggerIds_, const std::map<std::string, std::string>& options_):
42  triggerIds( triggerIds_ ),
43  options( options_ )
44  {
45  }
46 
52  std::vector<std::string> triggerIds;
53 
57  std::map<std::string, std::string> options;
58  };
59 } // end namespace gpudb
60 
61 namespace avro
62 {
63  template<> struct codec_traits<gpudb::ShowTriggersRequest>
64  {
65  static void encode(Encoder& e, const gpudb::ShowTriggersRequest& v)
66  {
67  ::avro::encode(e, v.triggerIds);
68  ::avro::encode(e, v.options);
69  }
70 
71  static void decode(Decoder& d, gpudb::ShowTriggersRequest& v)
72  {
73  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
74  {
75  const std::vector<size_t> fo = rd->fieldOrder();
76 
77  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
78  {
79  switch (*it)
80  {
81  case 0:
82  ::avro::decode(d, v.triggerIds);
83  break;
84 
85  case 1:
86  ::avro::decode(d, v.options);
87  break;
88 
89  default:
90  break;
91  }
92  }
93  }
94  else
95  {
96  ::avro::decode(d, v.triggerIds);
97  ::avro::decode(d, v.options);
98  }
99  }
100  };
101 } // end namespace avro
102 
103 namespace gpudb
104 {
111  {
116  triggerMap(std::map<std::string, std::map<std::string, std::string> >()),
117  info(std::map<std::string, std::string>())
118  {
119  }
120 
133  std::map<std::string, std::map<std::string, std::string> > triggerMap;
134 
138  std::map<std::string, std::string> info;
139  };
140 } // end namespace gpudb
141 
142 namespace avro
143 {
144  template<> struct codec_traits<gpudb::ShowTriggersResponse>
145  {
146  static void encode(Encoder& e, const gpudb::ShowTriggersResponse& v)
147  {
148  ::avro::encode(e, v.triggerMap);
149  ::avro::encode(e, v.info);
150  }
151 
152  static void decode(Decoder& d, gpudb::ShowTriggersResponse& v)
153  {
154  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
155  {
156  const std::vector<size_t> fo = rd->fieldOrder();
157 
158  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
159  {
160  switch (*it)
161  {
162  case 0:
163  ::avro::decode(d, v.triggerMap);
164  break;
165 
166  case 1:
167  ::avro::decode(d, v.info);
168  break;
169 
170  default:
171  break;
172  }
173  }
174  }
175  else
176  {
177  ::avro::decode(d, v.triggerMap);
178  ::avro::decode(d, v.info);
179  }
180  }
181  };
182 } // end namespace avro
183 
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.
Definition: show_triggers.h:19
std::vector< std::string > triggerIds
List of IDs of the triggers whose information is to be retrieved.
Definition: show_triggers.h:52
ShowTriggersRequest(const std::vector< std::string > &triggerIds_, const std::map< std::string, std::string > &options_)
Constructs a ShowTriggersRequest object with the specified parameters.
Definition: show_triggers.h:41
std::map< std::string, std::string > options
Optional parameters.
Definition: show_triggers.h:57
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.
Definition: show_triggers.h:24