6 #ifndef __ALTER_USER_H__
7 #define __ALTER_USER_H__
28 options(std::map<std::string, std::string>())
60 AlterUserRequest(
const std::string& name_,
const std::string& action_,
const std::string& value_,
const std::map<std::string, std::string>& options_):
71 std::map<std::string, std::string>
options;
77 template<>
struct codec_traits<gpudb::AlterUserRequest>
81 ::avro::encode(e, v.
name);
82 ::avro::encode(e, v.
action);
83 ::avro::encode(e, v.
value);
89 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
91 const std::vector<size_t> fo = rd->fieldOrder();
93 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
98 ::avro::decode(d, v.
name);
102 ::avro::decode(d, v.
action);
106 ::avro::decode(d, v.
value);
120 ::avro::decode(d, v.
name);
121 ::avro::decode(d, v.
action);
122 ::avro::decode(d, v.
value);
147 info(std::map<std::string, std::string>())
152 std::map<std::string, std::string>
info;
158 template<>
struct codec_traits<gpudb::AlterUserResponse>
162 ::avro::encode(e, v.
name);
163 ::avro::encode(e, v.
info);
168 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
170 const std::vector<size_t> fo = rd->fieldOrder();
172 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
177 ::avro::decode(d, v.
name);
181 ::avro::decode(d, v.
info);
191 ::avro::decode(d, v.
name);
192 ::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.