@ThreadSafe public final class GCSUnderFileSystemFactory extends Object implements UnderFileSystemFactory
GCSUnderFileSystem
. It will ensure Google credentials are present
before returning a client. The validity of the credentials is checked by the client.Constructor and Description |
---|
GCSUnderFileSystemFactory()
Constructs a new
GCSUnderFileSystemFactory . |
Modifier and Type | Method and Description |
---|---|
UnderFileSystem |
create(String path,
UnderFileSystemConfiguration conf)
Creates a new client for accessing the given path.
|
boolean |
supportsPath(String path)
Gets whether this factory supports the given path and thus whether calling the
UnderFileSystemFactory.create(String, UnderFileSystemConfiguration) can succeed for this path. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
supportsPath
public GCSUnderFileSystemFactory()
GCSUnderFileSystemFactory
.public UnderFileSystem create(String path, UnderFileSystemConfiguration conf)
UnderFileSystemFactory
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>
create
in interface UnderFileSystemFactory
path
- file pathconf
- optional configuration object for the UFS, may be nullpublic boolean supportsPath(String path)
UnderFileSystemFactory
UnderFileSystemFactory.create(String, UnderFileSystemConfiguration)
can succeed for this path.supportsPath
in interface UnderFileSystemFactory
path
- file pathCopyright © 2023. All Rights Reserved.