Package org.apache.flink.state.forst.fs
Class ForStFileSystemTrackingCreatedDirDecorator
- java.lang.Object
-
- org.apache.flink.core.fs.FileSystem
-
- org.apache.flink.state.forst.fs.ForStFlinkFileSystem
-
- org.apache.flink.state.forst.fs.ForStFileSystemTrackingCreatedDirDecorator
-
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.flink.core.fs.IFileSystem
public class ForStFileSystemTrackingCreatedDirDecorator extends ForStFlinkFileSystem
A decorator ofForStFlinkFileSystemto adapt ForSt to the underlying FileSystems which are implemented with incomplete mkdir(), i.e., such FileSystem implementation does not actually create the directory when mkdir() completes. This can lead to unexpected behavior when ForSt tries to assert the existence of directories by calling exists(). Therefore, we track the paths of the should-be-created directories and subsequently return true for existence checks.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.flink.state.forst.fs.ForStFlinkFileSystem
ForStFlinkFileSystem.FileStatusWrapper
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists(org.apache.flink.core.fs.Path f)booleanmkdirs(org.apache.flink.core.fs.Path path)-
Methods inherited from class org.apache.flink.state.forst.fs.ForStFlinkFileSystem
close, create, create, delete, get, get, getDelegateFS, getFileBasedCache, getFileBlockLocations, getFileStatus, getHomeDirectory, getMappingEntry, getRemoteBase, getUri, getWorkingDirectory, giveUpOwnership, isDistributedFS, link, link, listStatus, open, open, registerReusedRestoredFile, rename
-
Methods inherited from class org.apache.flink.core.fs.FileSystem
create, create, createRecoverableWriter, createRecoverableWriter, getDefaultBlockSize, getDefaultFsUri, getLocalFileSystem, getUnguardedFileSystem, initialize, initialize, initOutPathDistFS, initOutPathLocalFS
-
-
-
-
Method Detail
-
mkdirs
public boolean mkdirs(org.apache.flink.core.fs.Path path) throws IOException- Specified by:
mkdirsin interfaceorg.apache.flink.core.fs.IFileSystem- Overrides:
mkdirsin classForStFlinkFileSystem- Throws:
IOException
-
exists
public boolean exists(org.apache.flink.core.fs.Path f) throws IOException- Specified by:
existsin interfaceorg.apache.flink.core.fs.IFileSystem- Overrides:
existsin classForStFlinkFileSystem- Throws:
IOException
-
-