public static class UnderFileSystem.Factory extends Object
UnderFileSystem
.Modifier and Type | Method and Description |
---|---|
static UnderFileSystem |
create(String path)
Creates the
UnderFileSystem instance according to its UFS path. |
static UnderFileSystem |
create(String path,
UnderFileSystemConfiguration ufsConf)
Creates a client for operations involved with the under file system.
|
static UnderFileSystem |
create(URI path)
Creates the
UnderFileSystem instance according to its UFS path. |
static UnderFileSystem |
createForRoot() |
public static UnderFileSystem create(String path)
UnderFileSystem
instance according to its UFS path. This method should
only be used for journal operations and tests.path
- the file path storing over the ufspublic static UnderFileSystem create(URI path)
UnderFileSystem
instance according to its UFS path. This method should
only be used for journal operations and tests.path
- journal path in ufspublic static UnderFileSystem create(String path, UnderFileSystemConfiguration ufsConf)
IllegalArgumentException
is thrown if there is no under file system for the given
path or if no under file system could successfully be created.path
- pathufsConf
- optional configuration object for the UFS, may be nullpublic static UnderFileSystem createForRoot()
Copyright © 2023. All Rights Reserved.