lockTable
Manages global access to a table’s data. By default a table has alockTypeofREAD_WRITE, indicating all operations are permitted. A user may request aREAD_ONLYor aWRITE_ONLYlock, after which only read or write operations, respectively, are permitted on the table until the lock is removed. WhenlockTypeisNO_ACCESSthen no operations are permitted on the table. The lock status can be queried by settinglockTypetoSTATUS.Parameters:request-Requestobject containing the parameters for the operation.Returns:Responseobject containing the results of the operation.Throws:GPUdbException- if an error occurs during the operation.lockTable
public LockTableResponse lockTable(String tableName, String lockType, Map<String, String> options) throws GPUdbException Manages global access to a table’s data. By default a table has alockTypeofREAD_WRITE, indicating all operations are permitted. A user may request aREAD_ONLYor aWRITE_ONLYlock, after which only read or write operations, respectively, are permitted on the table until the lock is removed. WhenlockTypeisNO_ACCESSthen no operations are permitted on the table. The lock status can be queried by settinglockTypetoSTATUS.Parameters:tableName- Name 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.lockType- The type of lock being applied to the table. Setting it toSTATUSwill return the current lock status of the table without changing it. Supported values:STATUS: Show locked status.NO_ACCESS: Allow no read/write operations.READ_ONLY: Allow only read operations.WRITE_ONLY: Allow only write operations.READ_WRITE: Allow all read/write operations.
STATUS.options- Optional parameters. The default value is an emptyMap.Returns:Responseobject containing the results of the operation.Throws:GPUdbException- if an error occurs during the operation.