6 #ifndef __LOCK_TABLE_H__
7 #define __LOCK_TABLE_H__
33 options(std::map<std::string, std::string>())
63 LockTableRequest(
const std::string& tableName_,
const std::string& lockType_,
const std::map<std::string, std::string>& options_):
72 std::map<std::string, std::string>
options;
78 template<>
struct codec_traits<gpudb::LockTableRequest>
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)
147 info(std::map<std::string, std::string>())
152 std::map<std::string, std::string>
info;
158 template<>
struct codec_traits<gpudb::LockTableResponse>
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)
181 ::avro::decode(d, v.
info);
192 ::avro::decode(d, v.
info);
std::map< std::string, std::string > info
LockTableResponse()
Constructs a LockTableResponse object with default parameter values.
std::map< std::string, std::string > options
LockTableRequest(const std::string &tableName_, const std::string &lockType_, const std::map< std::string, std::string > &options_)
Constructs a LockTableRequest object with the specified parameters.
A set of output parameters for const.
LockTableRequest()
Constructs a LockTableRequest object with default parameter values.
A set of input parameters for const.