6 #ifndef __GRANT_PERMISSION_PROC_H__
7 #define __GRANT_PERMISSION_PROC_H__
29 options(std::map<std::string, std::string>())
54 GrantPermissionProcRequest(
const std::string& name_,
const std::string& permission_,
const std::string& procName_,
const std::map<std::string, std::string>& options_):
65 std::map<std::string, std::string>
options;
71 template<>
struct codec_traits<gpudb::GrantPermissionProcRequest>
75 ::avro::encode(e, v.
name);
83 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
85 const std::vector<size_t> fo = rd->fieldOrder();
87 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
92 ::avro::decode(d, v.
name);
114 ::avro::decode(d, v.
name);
143 info(std::map<std::string, std::string>())
150 std::map<std::string, std::string>
info;
156 template<>
struct codec_traits<gpudb::GrantPermissionProcResponse>
160 ::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);
189 ::avro::decode(d, v.
info);
199 ::avro::decode(d, v.
name);
202 ::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.