6 #ifndef __KILL_PROC_H__ 7 #define __KILL_PROC_H__ 24 options(std::map<std::string, std::string>())
79 KillProcRequest(
const std::string& runId_,
const std::map<std::string, std::string>& options_):
130 template<>
struct codec_traits<
gpudb::KillProcRequest>
134 ::avro::encode(e, v.
runId);
140 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
142 const std::vector<size_t> fo = rd->fieldOrder();
144 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
149 ::avro::decode(d, v.
runId);
163 ::avro::decode(d, v.
runId);
182 runIds(std::vector<std::string>()),
183 info(std::map<std::string, std::string>())
195 std::map<std::string, std::string>
info;
201 template<>
struct codec_traits<
gpudb::KillProcResponse>
205 ::avro::encode(e, v.
runIds);
206 ::avro::encode(e, v.
info);
211 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
213 const std::vector<size_t> fo = rd->fieldOrder();
215 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
220 ::avro::decode(d, v.
runIds);
224 ::avro::decode(d, v.
info);
234 ::avro::decode(d, v.
runIds);
235 ::avro::decode(d, v.
info);
241 #endif // __KILL_PROC_H__ KillProcResponse()
Constructs a KillProcResponse object with default parameters.
std::string runId
The run ID of a running proc instance.
KillProcRequest()
Constructs a KillProcRequest object with default parameters.
A set of parameters for GPUdb::killProc.
std::map< std::string, std::string > options
Optional parameters.
std::vector< std::string > runIds
List of run IDs of proc instances that were killed.
A set of results returned by GPUdb::killProc.
KillProcRequest(const std::string &runId_, const std::map< std::string, std::string > &options_)
Constructs a KillProcRequest object with the specified parameters.
std::map< std::string, std::string > info
Additional information.