GPUdb C++ API  Version 7.2.2.4
clear_trigger.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 __CLEAR_TRIGGER_H__
7 #define __CLEAR_TRIGGER_H__
8 
9 namespace gpudb
10 {
21  {
26  triggerId(std::string()),
27  options(std::map<std::string, std::string>())
28  {
29  }
30 
39  ClearTriggerRequest(const std::string& triggerId_, const std::map<std::string, std::string>& options_):
40  triggerId( triggerId_ ),
41  options( options_ )
42  {
43  }
44 
48  std::string triggerId;
49 
53  std::map<std::string, std::string> options;
54  };
55 } // end namespace gpudb
56 
57 namespace avro
58 {
59  template<> struct codec_traits<gpudb::ClearTriggerRequest>
60  {
61  static void encode(Encoder& e, const gpudb::ClearTriggerRequest& v)
62  {
63  ::avro::encode(e, v.triggerId);
64  ::avro::encode(e, v.options);
65  }
66 
67  static void decode(Decoder& d, gpudb::ClearTriggerRequest& v)
68  {
69  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
70  {
71  const std::vector<size_t> fo = rd->fieldOrder();
72 
73  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
74  {
75  switch (*it)
76  {
77  case 0:
78  ::avro::decode(d, v.triggerId);
79  break;
80 
81  case 1:
82  ::avro::decode(d, v.options);
83  break;
84 
85  default:
86  break;
87  }
88  }
89  }
90  else
91  {
92  ::avro::decode(d, v.triggerId);
93  ::avro::decode(d, v.options);
94  }
95  }
96  };
97 } // end namespace avro
98 
99 namespace gpudb
100 {
107  {
112  triggerId(std::string()),
113  info(std::map<std::string, std::string>())
114  {
115  }
116 
120  std::string triggerId;
121 
125  std::map<std::string, std::string> info;
126  };
127 } // end namespace gpudb
128 
129 namespace avro
130 {
131  template<> struct codec_traits<gpudb::ClearTriggerResponse>
132  {
133  static void encode(Encoder& e, const gpudb::ClearTriggerResponse& v)
134  {
135  ::avro::encode(e, v.triggerId);
136  ::avro::encode(e, v.info);
137  }
138 
139  static void decode(Decoder& d, gpudb::ClearTriggerResponse& v)
140  {
141  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
142  {
143  const std::vector<size_t> fo = rd->fieldOrder();
144 
145  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
146  {
147  switch (*it)
148  {
149  case 0:
150  ::avro::decode(d, v.triggerId);
151  break;
152 
153  case 1:
154  ::avro::decode(d, v.info);
155  break;
156 
157  default:
158  break;
159  }
160  }
161  }
162  else
163  {
164  ::avro::decode(d, v.triggerId);
165  ::avro::decode(d, v.info);
166  }
167  }
168  };
169 } // end namespace avro
170 
171 #endif // __CLEAR_TRIGGER_H__
A set of results returned by GPUdb::clearTrigger.
std::string triggerId
ID for the trigger to be deactivated.
Definition: clear_trigger.h:48
ClearTriggerRequest(const std::string &triggerId_, const std::map< std::string, std::string > &options_)
Constructs a ClearTriggerRequest object with the specified parameters.
Definition: clear_trigger.h:39
ClearTriggerRequest()
Constructs a ClearTriggerRequest object with default parameters.
Definition: clear_trigger.h:25
std::map< std::string, std::string > options
Optional parameters.
Definition: clear_trigger.h:53
std::map< std::string, std::string > info
Additional information.
ClearTriggerResponse()
Constructs a ClearTriggerResponse object with default parameters.
A set of parameters for GPUdb::clearTrigger.
Definition: clear_trigger.h:20
std::string triggerId
Value of triggerId.