6 #ifndef __GRANT_PERMISSION_PROC_H__
7 #define __GRANT_PERMISSION_PROC_H__
29 options(std::map<std::string, std::string>())
51 GrantPermissionProcRequest(
const std::string& name_,
const std::string& permission_,
const std::string& procName_,
const std::map<std::string, std::string>& options_):
62 std::map<std::string, std::string>
options;
68 template<>
struct codec_traits<gpudb::GrantPermissionProcRequest>
72 ::avro::encode(e, v.
name);
80 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
82 const std::vector<size_t> fo = rd->fieldOrder();
84 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
89 ::avro::decode(d, v.
name);
111 ::avro::decode(d, v.
name);
140 info(std::map<std::string, std::string>())
147 std::map<std::string, std::string>
info;
153 template<>
struct codec_traits<gpudb::GrantPermissionProcResponse>
157 ::avro::encode(e, v.
name);
160 ::avro::encode(e, v.
info);
165 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
167 const std::vector<size_t> fo = rd->fieldOrder();
169 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
174 ::avro::decode(d, v.
name);
186 ::avro::decode(d, v.
info);
196 ::avro::decode(d, v.
name);
199 ::avro::decode(d, v.
info);
A set of input parameters for const.
GrantPermissionProcRequest(const std::string &name_, const std::string &permission_, const std::string &procName_, const std::map< std::string, std::string > &options_)
Constructs a GrantPermissionProcRequest object with the specified parameters.
GrantPermissionProcResponse()
Constructs a GrantPermissionProcResponse object with default parameter values.
A set of output parameters for const.
std::map< std::string, std::string > info
std::map< std::string, std::string > options
GrantPermissionProcRequest()
Constructs a GrantPermissionProcRequest object with default parameter values.