6 #ifndef __ALTER_USER_H__
7 #define __ALTER_USER_H__
28 options(std::map<std::string, std::string>())
55 AlterUserRequest(
const std::string& name_,
const std::string& action_,
const std::string& value_,
const std::map<std::string, std::string>& options_):
66 std::map<std::string, std::string>
options;
72 template<>
struct codec_traits<gpudb::AlterUserRequest>
76 ::avro::encode(e, v.
name);
77 ::avro::encode(e, v.
action);
78 ::avro::encode(e, v.
value);
84 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
86 const std::vector<size_t> fo = rd->fieldOrder();
88 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
93 ::avro::decode(d, v.
name);
97 ::avro::decode(d, v.
action);
101 ::avro::decode(d, v.
value);
115 ::avro::decode(d, v.
name);
116 ::avro::decode(d, v.
action);
117 ::avro::decode(d, v.
value);
142 info(std::map<std::string, std::string>())
147 std::map<std::string, std::string>
info;
153 template<>
struct codec_traits<gpudb::AlterUserResponse>
157 ::avro::encode(e, v.
name);
158 ::avro::encode(e, v.
info);
163 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
165 const std::vector<size_t> fo = rd->fieldOrder();
167 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
172 ::avro::decode(d, v.
name);
176 ::avro::decode(d, v.
info);
186 ::avro::decode(d, v.
name);
187 ::avro::decode(d, v.
info);
std::map< std::string, std::string > info
std::map< std::string, std::string > options
AlterUserRequest()
Constructs an AlterUserRequest object with default parameter values.
A set of output parameters for const.
A set of input parameters for const.
AlterUserRequest(const std::string &name_, const std::string &action_, const std::string &value_, const std::map< std::string, std::string > &options_)
Constructs an AlterUserRequest object with the specified parameters.
AlterUserResponse()
Constructs an AlterUserResponse object with default parameter values.