GPUdb C++ API  Version 6.2.0.3
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 
41  KillProcRequest(const std::string& runId_, const std::map<std::string, std::string>& options_):
42  runId( runId_ ),
43  options( options_ )
44  {
45  }
46 
47  std::string runId;
48  std::map<std::string, std::string> options;
49  };
50 }
51 
52 namespace avro
53 {
54  template<> struct codec_traits<gpudb::KillProcRequest>
55  {
56  static void encode(Encoder& e, const gpudb::KillProcRequest& v)
57  {
58  ::avro::encode(e, v.runId);
59  ::avro::encode(e, v.options);
60  }
61 
62  static void decode(Decoder& d, gpudb::KillProcRequest& v)
63  {
64  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
65  {
66  const std::vector<size_t> fo = rd->fieldOrder();
67 
68  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
69  {
70  switch (*it)
71  {
72  case 0:
73  ::avro::decode(d, v.runId);
74  break;
75 
76  case 1:
77  ::avro::decode(d, v.options);
78  break;
79 
80  default:
81  break;
82  }
83  }
84  }
85  else
86  {
87  ::avro::decode(d, v.runId);
88  ::avro::decode(d, v.options);
89  }
90  }
91  };
92 }
93 
94 namespace gpudb
95 {
96 
104  {
105 
110  runIds(std::vector<std::string>())
111  {
112  }
113 
114  std::vector<std::string> runIds;
115  };
116 }
117 
118 namespace avro
119 {
120  template<> struct codec_traits<gpudb::KillProcResponse>
121  {
122  static void encode(Encoder& e, const gpudb::KillProcResponse& v)
123  {
124  ::avro::encode(e, v.runIds);
125  }
126 
127  static void decode(Decoder& d, gpudb::KillProcResponse& v)
128  {
129  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
130  {
131  const std::vector<size_t> fo = rd->fieldOrder();
132 
133  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
134  {
135  switch (*it)
136  {
137  case 0:
138  ::avro::decode(d, v.runIds);
139  break;
140 
141  default:
142  break;
143  }
144  }
145  }
146  else
147  {
148  ::avro::decode(d, v.runIds);
149  }
150  }
151  };
152 }
153 
154 #endif
KillProcResponse()
Constructs a KillProcResponse object with default parameter values.
Definition: kill_proc.h:109
std::string runId
Definition: kill_proc.h:47
KillProcRequest()
Constructs a KillProcRequest object with default parameter values.
Definition: kill_proc.h:24
A set of input parameters for killProc(const KillProcRequest&) const.
Definition: kill_proc.h:18
std::map< std::string, std::string > options
Definition: kill_proc.h:48
std::vector< std::string > runIds
Definition: kill_proc.h:114
A set of output parameters for killProc(const KillProcRequest&) const.
Definition: kill_proc.h:103
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:41