GPUdb C++ API  Version 7.2.2.4
kill_proc.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 __KILL_PROC_H__
7 #define __KILL_PROC_H__
8 
9 namespace gpudb
10 {
18  {
23  runId(std::string()),
24  options(std::map<std::string, std::string>())
25  {
26  }
27 
79  KillProcRequest(const std::string& runId_, const std::map<std::string, std::string>& options_):
80  runId( runId_ ),
81  options( options_ )
82  {
83  }
84 
91  std::string runId;
92 
124  std::map<std::string, std::string> options;
125  };
126 } // end namespace gpudb
127 
128 namespace avro
129 {
130  template<> struct codec_traits<gpudb::KillProcRequest>
131  {
132  static void encode(Encoder& e, const gpudb::KillProcRequest& v)
133  {
134  ::avro::encode(e, v.runId);
135  ::avro::encode(e, v.options);
136  }
137 
138  static void decode(Decoder& d, gpudb::KillProcRequest& v)
139  {
140  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
141  {
142  const std::vector<size_t> fo = rd->fieldOrder();
143 
144  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
145  {
146  switch (*it)
147  {
148  case 0:
149  ::avro::decode(d, v.runId);
150  break;
151 
152  case 1:
153  ::avro::decode(d, v.options);
154  break;
155 
156  default:
157  break;
158  }
159  }
160  }
161  else
162  {
163  ::avro::decode(d, v.runId);
164  ::avro::decode(d, v.options);
165  }
166  }
167  };
168 } // end namespace avro
169 
170 namespace gpudb
171 {
177  {
182  runIds(std::vector<std::string>()),
183  info(std::map<std::string, std::string>())
184  {
185  }
186 
190  std::vector<std::string> runIds;
191 
195  std::map<std::string, std::string> info;
196  };
197 } // end namespace gpudb
198 
199 namespace avro
200 {
201  template<> struct codec_traits<gpudb::KillProcResponse>
202  {
203  static void encode(Encoder& e, const gpudb::KillProcResponse& v)
204  {
205  ::avro::encode(e, v.runIds);
206  ::avro::encode(e, v.info);
207  }
208 
209  static void decode(Decoder& d, gpudb::KillProcResponse& v)
210  {
211  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
212  {
213  const std::vector<size_t> fo = rd->fieldOrder();
214 
215  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
216  {
217  switch (*it)
218  {
219  case 0:
220  ::avro::decode(d, v.runIds);
221  break;
222 
223  case 1:
224  ::avro::decode(d, v.info);
225  break;
226 
227  default:
228  break;
229  }
230  }
231  }
232  else
233  {
234  ::avro::decode(d, v.runIds);
235  ::avro::decode(d, v.info);
236  }
237  }
238  };
239 } // end namespace avro
240 
241 #endif // __KILL_PROC_H__
KillProcResponse()
Constructs a KillProcResponse object with default parameters.
Definition: kill_proc.h:181
std::string runId
The run ID of a running proc instance.
Definition: kill_proc.h:91
KillProcRequest()
Constructs a KillProcRequest object with default parameters.
Definition: kill_proc.h:22
A set of parameters for GPUdb::killProc.
Definition: kill_proc.h:17
std::map< std::string, std::string > options
Optional parameters.
Definition: kill_proc.h:124
std::vector< std::string > runIds
List of run IDs of proc instances that were killed.
Definition: kill_proc.h:190
A set of results returned by GPUdb::killProc.
Definition: kill_proc.h:176
KillProcRequest(const std::string &runId_, const std::map< std::string, std::string > &options_)
Constructs a KillProcRequest object with the specified parameters.
Definition: kill_proc.h:79
std::map< std::string, std::string > info
Additional information.
Definition: kill_proc.h:195