6 #ifndef __ADMIN_SHOW_SHARDS_H__ 7 #define __ADMIN_SHOW_SHARDS_H__ 26 options(std::map<std::string, std::string>())
45 std::map<std::string, std::string>
options;
51 template<>
struct codec_traits<
gpudb::AdminShowShardsRequest>
60 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
62 const std::vector<size_t> fo = rd->fieldOrder();
64 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
100 rank(std::vector<int32_t>()),
101 tom(std::vector<int32_t>()),
102 info(std::map<std::string, std::string>())
124 std::map<std::string, std::string>
info;
130 template<>
struct codec_traits<
gpudb::AdminShowShardsResponse>
135 ::avro::encode(e, v.
rank);
136 ::avro::encode(e, v.
tom);
137 ::avro::encode(e, v.
info);
142 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
144 const std::vector<size_t> fo = rd->fieldOrder();
146 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
155 ::avro::decode(d, v.
rank);
159 ::avro::decode(d, v.
tom);
163 ::avro::decode(d, v.
info);
174 ::avro::decode(d, v.
rank);
175 ::avro::decode(d, v.
tom);
176 ::avro::decode(d, v.
info);
182 #endif // __ADMIN_SHOW_SHARDS_H__ int64_t version
Current shard array version number.
AdminShowShardsRequest()
Constructs an AdminShowShardsRequest object with default parameters.
std::map< std::string, std::string > options
Optional parameters.
A set of results returned by GPUdb::adminShowShards.
AdminShowShardsRequest(const std::map< std::string, std::string > &options_)
Constructs an AdminShowShardsRequest object with the specified parameters.
A set of parameters for GPUdb::adminShowShards.
std::vector< int32_t > tom
Array of toms to which the corresponding shard belongs.
std::vector< int32_t > rank
Array of ranks indexed by the shard number.
AdminShowShardsResponse()
Constructs an AdminShowShardsResponse object with default parameters.
std::map< std::string, std::string > info
Additional information.