6 #ifndef __ADMIN_SHOW_SHARDS_H__
7 #define __ADMIN_SHOW_SHARDS_H__
28 options(std::map<std::string, std::string>())
44 std::map<std::string, std::string>
options;
50 template<>
struct codec_traits<gpudb::AdminShowShardsRequest>
59 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
61 const std::vector<size_t> fo = rd->fieldOrder();
63 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
104 rank(std::vector<int32_t>()),
105 tom(std::vector<int32_t>()),
106 info(std::map<std::string, std::string>())
113 std::map<std::string, std::string>
info;
119 template<>
struct codec_traits<gpudb::AdminShowShardsResponse>
124 ::avro::encode(e, v.
rank);
125 ::avro::encode(e, v.
tom);
126 ::avro::encode(e, v.
info);
131 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
133 const std::vector<size_t> fo = rd->fieldOrder();
135 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
144 ::avro::decode(d, v.
rank);
148 ::avro::decode(d, v.
tom);
152 ::avro::decode(d, v.
info);
163 ::avro::decode(d, v.
rank);
164 ::avro::decode(d, v.
tom);
165 ::avro::decode(d, v.
info);
AdminShowShardsRequest()
Constructs an AdminShowShardsRequest object with default parameter values.
std::map< std::string, std::string > options
A set of output parameters for const.
AdminShowShardsRequest(const std::map< std::string, std::string > &options_)
Constructs an AdminShowShardsRequest object with the specified parameters.
A set of input parameters for const.
std::vector< int32_t > tom
std::vector< int32_t > rank
AdminShowShardsResponse()
Constructs an AdminShowShardsResponse object with default parameter values.
std::map< std::string, std::string > info