public interface HiveLockManager
HiveTxnManager
.Modifier and Type | Method and Description |
---|---|
void |
close() |
List<HiveLock> |
getLocks(boolean verifyTablePartitions,
boolean fetchData) |
List<HiveLock> |
getLocks(HiveLockObject key,
boolean verifyTablePartitions,
boolean fetchData) |
HiveLock |
lock(HiveLockObject key,
HiveLockMode mode,
boolean keepAlive) |
List<HiveLock> |
lock(List<HiveLockObj> objs,
boolean keepAlive) |
void |
prepareRetry() |
void |
refresh()
refresh to enable new configurations.
|
void |
releaseLocks(List<HiveLock> hiveLocks) |
void |
setContext(HiveLockManagerCtx ctx) |
void |
unlock(HiveLock hiveLock) |
void setContext(HiveLockManagerCtx ctx) throws LockException
LockException
HiveLock lock(HiveLockObject key, HiveLockMode mode, boolean keepAlive) throws LockException
key
- object to be lockedmode
- mode of the lock (SHARED/EXCLUSIVE)keepAlive
- if the lock needs to be persisted after the statementLockException
List<HiveLock> lock(List<HiveLockObj> objs, boolean keepAlive) throws LockException
LockException
void unlock(HiveLock hiveLock) throws LockException
LockException
List<HiveLock> getLocks(boolean verifyTablePartitions, boolean fetchData) throws LockException
LockException
List<HiveLock> getLocks(HiveLockObject key, boolean verifyTablePartitions, boolean fetchData) throws LockException
LockException
void close() throws LockException
LockException
void prepareRetry() throws LockException
LockException
void refresh()
Copyright © 2017 The Apache Software Foundation. All rights reserved.