GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
kill_proc.h
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the GPUdb schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 #ifndef __KILL_PROC_H__
7 #define __KILL_PROC_H__
8 
9 namespace gpudb
10 {
11 
19  {
20 
25  runId(std::string()),
26  options(std::map<std::string, std::string>())
27  {
28  }
29 
63  KillProcRequest(const std::string& runId_, const std::map<std::string, std::string>& options_):
64  runId( runId_ ),
65  options( options_ )
66  {
67  }
68 
69  std::string runId;
70  std::map<std::string, std::string> options;
71  };
72 }
73 
74 namespace avro
75 {
76  template<> struct codec_traits<gpudb::KillProcRequest>
77  {
78  static void encode(Encoder& e, const gpudb::KillProcRequest& v)
79  {
80  ::avro::encode(e, v.runId);
81  ::avro::encode(e, v.options);
82  }
83 
84  static void decode(Decoder& d, gpudb::KillProcRequest& v)
85  {
86  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
87  {
88  const std::vector<size_t> fo = rd->fieldOrder();
89 
90  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
91  {
92  switch (*it)
93  {
94  case 0:
95  ::avro::decode(d, v.runId);
96  break;
97 
98  case 1:
99  ::avro::decode(d, v.options);
100  break;
101 
102  default:
103  break;
104  }
105  }
106  }
107  else
108  {
109  ::avro::decode(d, v.runId);
110  ::avro::decode(d, v.options);
111  }
112  }
113  };
114 }
115 
116 namespace gpudb
117 {
118 
126  {
127 
132  runIds(std::vector<std::string>()),
133  info(std::map<std::string, std::string>())
134  {
135  }
136 
137  std::vector<std::string> runIds;
138  std::map<std::string, std::string> info;
139  };
140 }
141 
142 namespace avro
143 {
144  template<> struct codec_traits<gpudb::KillProcResponse>
145  {
146  static void encode(Encoder& e, const gpudb::KillProcResponse& v)
147  {
148  ::avro::encode(e, v.runIds);
149  ::avro::encode(e, v.info);
150  }
151 
152  static void decode(Decoder& d, gpudb::KillProcResponse& 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.runIds);
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.runIds);
178  ::avro::decode(d, v.info);
179  }
180  }
181  };
182 }
183 
184 #endif
KillProcResponse()
Constructs a KillProcResponse object with default parameter values.
Definition: kill_proc.h:131
std::string runId
Definition: kill_proc.h:69
KillProcRequest()
Constructs a KillProcRequest object with default parameter values.
Definition: kill_proc.h:24
A set of input parameters for const.
Definition: kill_proc.h:18
std::map< std::string, std::string > options
Definition: kill_proc.h:70
std::vector< std::string > runIds
Definition: kill_proc.h:137
A set of output parameters for const.
Definition: kill_proc.h:125
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:63
std::map< std::string, std::string > info
Definition: kill_proc.h:138