6 #ifndef __CREATE_ROLE_H__
7 #define __CREATE_ROLE_H__
26 options(std::map<std::string, std::string>())
45 CreateRoleRequest(
const std::string& name_,
const std::map<std::string, std::string>& options_):
52 std::map<std::string, std::string>
options;
58 template<>
struct codec_traits<gpudb::CreateRoleRequest>
62 ::avro::encode(e, v.
name);
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.
name);
91 ::avro::decode(d, v.
name);
116 info(std::map<std::string, std::string>())
121 std::map<std::string, std::string>
info;
127 template<>
struct codec_traits<gpudb::CreateRoleResponse>
131 ::avro::encode(e, v.
name);
132 ::avro::encode(e, v.
info);
137 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
139 const std::vector<size_t> fo = rd->fieldOrder();
141 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
146 ::avro::decode(d, v.
name);
150 ::avro::decode(d, v.
info);
160 ::avro::decode(d, v.
name);
161 ::avro::decode(d, v.
info);
A set of input parameters for const.
A set of output parameters for const.
std::map< std::string, std::string > options
CreateRoleResponse()
Constructs a CreateRoleResponse object with default parameter values.
CreateRoleRequest()
Constructs a CreateRoleRequest object with default parameter values.
CreateRoleRequest(const std::string &name_, const std::map< std::string, std::string > &options_)
Constructs a CreateRoleRequest object with the specified parameters.
std::map< std::string, std::string > info