6 #ifndef __ADMIN_ADD_RANKS_H__
7 #define __ADMIN_ADD_RANKS_H__
50 hosts(std::vector<std::string>()),
51 configParams(std::vector<std::map<std::string, std::string> >()),
52 options(std::map<std::string, std::string>())
93 AdminAddRanksRequest(
const std::vector<std::string>& hosts_,
const std::vector<std::map<std::string, std::string> >& configParams_,
const std::map<std::string, std::string>& options_):
108 template<>
struct codec_traits<gpudb::AdminAddRanksRequest>
112 ::avro::encode(e, v.
hosts);
119 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
121 const std::vector<size_t> fo = rd->fieldOrder();
123 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
128 ::avro::decode(d, v.
hosts);
146 ::avro::decode(d, v.
hosts);
196 results(std::vector<std::string>()),
197 info(std::map<std::string, std::string>())
203 std::map<std::string, std::string>
info;
209 template<>
struct codec_traits<gpudb::AdminAddRanksResponse>
215 ::avro::encode(e, v.
info);
220 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
222 const std::vector<size_t> fo = rd->fieldOrder();
224 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
237 ::avro::decode(d, v.
info);
249 ::avro::decode(d, v.
info);
AdminAddRanksRequest(const std::vector< std::string > &hosts_, const std::vector< std::map< std::string, std::string > > &configParams_, const std::map< std::string, std::string > &options_)
Constructs an AdminAddRanksRequest object with the specified parameters.
std::vector< int32_t > addedRanks
std::map< std::string, std::string > options
std::vector< std::string > results
A set of output parameters for const.
std::map< std::string, std::string > info
AdminAddRanksRequest()
Constructs an AdminAddRanksRequest object with default parameter values.
AdminAddRanksResponse()
Constructs an AdminAddRanksResponse object with default parameter values.
A set of input parameters for const.
std::vector< std::string > hosts
std::vector< std::map< std::string, std::string > > configParams