6 #ifndef __ADMIN_REMOVE_RANKS_H__ 7 #define __ADMIN_REMOVE_RANKS_H__ 44 ranks(std::vector<std::string>()),
45 options(std::map<std::string, std::string>())
212 template<>
struct codec_traits<
gpudb::AdminRemoveRanksRequest>
216 ::avro::encode(e, v.
ranks);
222 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
224 const std::vector<size_t> fo = rd->fieldOrder();
226 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
231 ::avro::decode(d, v.
ranks);
245 ::avro::decode(d, v.
ranks);
267 info(std::map<std::string, std::string>())
280 std::map<std::string, std::string>
info;
286 template<>
struct codec_traits<
gpudb::AdminRemoveRanksResponse>
291 ::avro::encode(e, v.
info);
296 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
298 const std::vector<size_t> fo = rd->fieldOrder();
300 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
309 ::avro::decode(d, v.
info);
320 ::avro::decode(d, v.
info);
326 #endif // __ADMIN_REMOVE_RANKS_H__ AdminRemoveRanksResponse()
Constructs an AdminRemoveRanksResponse object with default parameters.
AdminRemoveRanksRequest(const std::vector< std::string > &ranks_, const std::map< std::string, std::string > &options_)
Constructs an AdminRemoveRanksRequest object with the specified parameters.
std::vector< std::string > removedRanks
The number assigned to each rank removed from the cluster.
std::vector< std::string > ranks
Each array value designates one or more ranks to remove from the cluster.
A set of parameters for GPUdb::adminRemoveRanks.
std::map< std::string, std::string > options
Optional parameters.
A set of results returned by GPUdb::adminRemoveRanks.
std::map< std::string, std::string > info
Additional information.
AdminRemoveRanksRequest()
Constructs an AdminRemoveRanksRequest object with default parameters.