6 #ifndef __GRANT_ROLE_H__
7 #define __GRANT_ROLE_H__
27 options(std::map<std::string, std::string>())
42 GrantRoleRequest(
const std::string& role_,
const std::string& member_,
const std::map<std::string, std::string>& options_):
51 std::map<std::string, std::string>
options;
57 template<>
struct codec_traits<gpudb::GrantRoleRequest>
61 ::avro::encode(e, v.
role);
62 ::avro::encode(e, v.
member);
68 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
70 const std::vector<size_t> fo = rd->fieldOrder();
72 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
77 ::avro::decode(d, v.
role);
81 ::avro::decode(d, v.
member);
95 ::avro::decode(d, v.
role);
96 ::avro::decode(d, v.
member);
121 info(std::map<std::string, std::string>())
127 std::map<std::string, std::string>
info;
133 template<>
struct codec_traits<gpudb::GrantRoleResponse>
137 ::avro::encode(e, v.
role);
138 ::avro::encode(e, v.
member);
139 ::avro::encode(e, v.
info);
144 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
146 const std::vector<size_t> fo = rd->fieldOrder();
148 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
153 ::avro::decode(d, v.
role);
157 ::avro::decode(d, v.
member);
161 ::avro::decode(d, v.
info);
171 ::avro::decode(d, v.
role);
172 ::avro::decode(d, v.
member);
173 ::avro::decode(d, v.
info);
GrantRoleRequest()
Constructs a GrantRoleRequest object with default parameter values.
std::map< std::string, std::string > options
GrantRoleRequest(const std::string &role_, const std::string &member_, const std::map< std::string, std::string > &options_)
Constructs a GrantRoleRequest object with the specified parameters.
A set of output parameters for const.
std::map< std::string, std::string > info
GrantRoleResponse()
Constructs a GrantRoleResponse object with default parameter values.
A set of input parameters for const.