@PublicApi public interface UnderFileSystemFactory extends ExtensionFactory<UnderFileSystem,UnderFileSystemConfiguration>
Modifier and Type | Method and Description |
---|---|
UnderFileSystem |
create(String path,
UnderFileSystemConfiguration conf)
Creates a new client for accessing the given path.
|
default String |
getVersion()
Get the version supported by this factory.
|
boolean |
supportsPath(String path)
Gets whether this factory supports the given path and thus whether calling the
create(String, UnderFileSystemConfiguration) can succeed for
this path. |
default boolean |
supportsPath(String path,
UnderFileSystemConfiguration conf)
Gets whether this factory supports the given path and thus whether calling the
create(String, UnderFileSystemConfiguration) can succeed for
this path. |
UnderFileSystem create(String path, UnderFileSystemConfiguration conf)
IllegalArgumentException
is
thrown if this factory does not support clients for the given path or if the configuration
provided is insufficient to create a client.create
in interface ExtensionFactory<UnderFileSystem,UnderFileSystemConfiguration>
path
- file pathconf
- configuration object for the UFSboolean supportsPath(String path)
create(String, UnderFileSystemConfiguration)
can succeed for
this path.path
- file pathdefault boolean supportsPath(String path, UnderFileSystemConfiguration conf)
create(String, UnderFileSystemConfiguration)
can succeed for
this path.supportsPath
in interface ExtensionFactory<UnderFileSystem,UnderFileSystemConfiguration>
path
- file pathconf
- configuration object for the UFSdefault String getVersion()
Copyright © 2023. All Rights Reserved.