6 #ifndef __LOCK_TABLE_H__ 7 #define __LOCK_TABLE_H__ 34 options(std::map<std::string, std::string>())
74 LockTableRequest(
const std::string& tableName_,
const std::string& lockType_,
const std::map<std::string, std::string>& options_):
121 template<>
struct codec_traits<
gpudb::LockTableRequest>
132 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
134 const std::vector<size_t> fo = rd->fieldOrder();
136 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
180 info(std::map<std::string, std::string>())
192 std::map<std::string, std::string>
info;
198 template<>
struct codec_traits<
gpudb::LockTableResponse>
203 ::avro::encode(e, v.
info);
208 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
210 const std::vector<size_t> fo = rd->fieldOrder();
212 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
221 ::avro::decode(d, v.
info);
232 ::avro::decode(d, v.
info);
238 #endif // __LOCK_TABLE_H__
std::map< std::string, std::string > info
Additional information.
std::string lockType
Returns the lock state of the table.
LockTableResponse()
Constructs a LockTableResponse object with default parameters.
std::map< std::string, std::string > options
Optional parameters.
std::string tableName
Name of the table to be locked, in [ schema_name. ]table_name format, using standard name resolution ...
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.
std::string lockType
The type of lock being applied to the table.
A set of results returned by GPUdb::lockTable.
LockTableRequest()
Constructs a LockTableRequest object with default parameters.
A set of parameters for GPUdb::lockTable.