Package io.delta.storage.internal
Class PathLock
Object
io.delta.storage.internal.PathLock
A lock that provides per-file-path `acquire` and `release` semantics. Can be used to ensure that
no two writers are creating the same external (e.g. S3) file at the same time.
Note: For all APIs, the caller should resolve the path to make sure we are locking the correct absolute path.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PathLock
public PathLock()
-
-
Method Details
-
release
public void release(org.apache.hadoop.fs.Path resolvedPath) Release the lock for the path after writing. -
acquire
Acquire a lock for the path before writing.- Throws:
InterruptedException
-