@Public public interface Lock extends AutoCloseable
Modifier and Type | Interface and Description |
---|---|
static class |
Lock.CatalogLockImpl
A
Lock to wrap CatalogLock . |
static class |
Lock.EmptyFactory
A
Lock.Factory creating empty lock. |
static class |
Lock.EmptyLock
An empty lock.
|
static interface |
Lock.Factory
A factory to create
Lock . |
static class |
Lock.LockFactory
A
Lock.Factory creating lock from catalog. |
Modifier and Type | Method and Description |
---|---|
static Lock.Factory |
emptyFactory() |
static Lock.Factory |
factory(CatalogLockFactory lockFactory,
CatalogLockContext lockContext,
Identifier tablePath) |
static Lock |
fromCatalog(CatalogLock lock,
Identifier tablePath) |
<T> T |
runWithLock(Callable<T> callable)
Run with lock.
|
close
<T> T runWithLock(Callable<T> callable) throws Exception
Exception
static Lock.Factory factory(@Nullable CatalogLockFactory lockFactory, @Nullable CatalogLockContext lockContext, Identifier tablePath)
static Lock.Factory emptyFactory()
static Lock fromCatalog(CatalogLock lock, Identifier tablePath)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.