Skip to main content

◆ lockTable() [1/4]

LockTableResponse gpudb::GPUdb::lockTable (const LockTableRequest &request_) const

Manages global access to a table’s data.

By default a table has a lockType of read_write, indicating all operations are permitted. A user may request a read_only or a write_only lock, after which only read or write operations, respectively, are permitted on the table until the lock is removed. When lockType is no_access then no operations are permitted on the table. The lock status can be queried by setting lockType to status.

Parameters
[in]request_Request object containing the parameters for the operation.
Returns
Response object containing the result of the operation.

◆ lockTable() [2/4]

LockTableResponse & gpudb::GPUdb::lockTable (const LockTableRequest &request_,
LockTableResponse &response_ ) const

Manages global access to a table’s data.

By default a table has a lockType of read_write, indicating all operations are permitted. A user may request a read_only or a write_only lock, after which only read or write operations, respectively, are permitted on the table until the lock is removed. When lockType is no_access then no operations are permitted on the table. The lock status can be queried by setting lockType to status.

Parameters
[in]request_Request object containing the parameters for the operation.
[out]response_Response object containing the results of the operation.
Returns
Response object containing the result of the operation (initially passed in by reference).

◆ lockTable() [3/4]

LockTableResponse gpudb::GPUdb::lockTable (const std::string &tableName,
const std::string &lockType,
const std::map< std::string, std::string > &options ) const

Manages global access to a table’s data.

By default a table has a lockType of read_write, indicating all operations are permitted. A user may request a read_only or a write_only lock, after which only read or write operations, respectively, are permitted on the table until the lock is removed. When lockType is no_access then no operations are permitted on the table. The lock status can be queried by setting lockType to status.

Parameters
[in]tableNameName of the table to be locked, in [schema_name.]table_name format, using standard name resolution rules. It must be a currently existing table or view.
[in]lockTypeThe type of lock being applied to the table. Setting it to status will return the current lock status of the table without changing it. Supported values:The default value is lock_table_status.
[in]optionsOptional parameters. The default value is an empty map.
Returns
Response object containing the result of the operation.

◆ lockTable() [4/4]

LockTableResponse & gpudb::GPUdb::lockTable (const std::string &tableName,
const std::string &lockType,
const std::map< std::string, std::string > &options,
LockTableResponse &response_ ) const

Manages global access to a table’s data.

By default a table has a lockType of read_write, indicating all operations are permitted. A user may request a read_only or a write_only lock, after which only read or write operations, respectively, are permitted on the table until the lock is removed. When lockType is no_access then no operations are permitted on the table. The lock status can be queried by setting lockType to status.

Parameters
[in]tableNameName of the table to be locked, in [schema_name.]table_name format, using standard name resolution rules. It must be a currently existing table or view.
[in]lockTypeThe type of lock being applied to the table. Setting it to status will return the current lock status of the table without changing it. Supported values:The default value is lock_table_status.
[in]optionsOptional parameters. The default value is an empty map.
[out]response_Response object containing the results of the operation.
Returns
Response object containing the result of the operation (initially passed in by reference).