6 #ifndef __ADMIN_REMOVE_RANKS_H__
7 #define __ADMIN_REMOVE_RANKS_H__
34 ranks(std::vector<int32_t>()),
35 options(std::map<std::string, std::string>())
94 std::map<std::string, std::string>
options;
100 template<>
struct codec_traits<gpudb::AdminRemoveRanksRequest>
104 ::avro::encode(e, v.
ranks);
110 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
112 const std::vector<size_t> fo = rd->fieldOrder();
114 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
119 ::avro::decode(d, v.
ranks);
133 ::avro::decode(d, v.
ranks);
166 results(std::vector<std::string>()),
167 info(std::map<std::string, std::string>())
173 std::map<std::string, std::string>
info;
179 template<>
struct codec_traits<gpudb::AdminRemoveRanksResponse>
185 ::avro::encode(e, v.
info);
190 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
192 const std::vector<size_t> fo = rd->fieldOrder();
194 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
207 ::avro::decode(d, v.
info);
219 ::avro::decode(d, v.
info);
AdminRemoveRanksResponse()
Constructs an AdminRemoveRanksResponse object with default parameter values.
A set of input parameters for const.
std::vector< int32_t > removedRanks
std::vector< std::string > results
std::vector< int32_t > ranks
std::map< std::string, std::string > options
A set of output parameters for const.
AdminRemoveRanksRequest(const std::vector< int32_t > &ranks_, const std::map< std::string, std::string > &options_)
Constructs an AdminRemoveRanksRequest object with the specified parameters.
std::map< std::string, std::string > info
AdminRemoveRanksRequest()
Constructs an AdminRemoveRanksRequest object with default parameter values.