public static class FileSystemOptions.Builder extends Object
FileSystemOptions
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
FileSystemOptions |
build() |
static FileSystemOptions.Builder |
fromConf(AlluxioConfiguration conf)
Creates new builder from configuration.
|
Optional<UfsFileSystemOptions> |
getUfsFileSystemOptions() |
boolean |
isDataCacheEnabled() |
boolean |
isDoraCacheEnabled() |
boolean |
isMetadataCacheEnabled() |
boolean |
isUfsFallbackEnabled() |
FileSystemOptions.Builder |
setDataCacheEnabled(boolean dataCacheEnabled) |
FileSystemOptions.Builder |
setDoraCacheEnabled(boolean doraCacheEnabled) |
FileSystemOptions.Builder |
setMetadataCacheEnabled(boolean metadataCacheEnabled) |
FileSystemOptions.Builder |
setUfsFallbackEnabled(boolean ufsFallbackEnabled) |
FileSystemOptions.Builder |
setUfsFileSystemOptions(UfsFileSystemOptions ufsFileSystemOptions) |
public static FileSystemOptions.Builder fromConf(AlluxioConfiguration conf)
conf
- configurationpublic boolean isMetadataCacheEnabled()
public FileSystemOptions.Builder setMetadataCacheEnabled(boolean metadataCacheEnabled)
metadataCacheEnabled
- whether client metadata cache is enabledpublic boolean isDataCacheEnabled()
public FileSystemOptions.Builder setDataCacheEnabled(boolean dataCacheEnabled)
dataCacheEnabled
- whether client local data cache is enabledpublic boolean isDoraCacheEnabled()
public FileSystemOptions.Builder setDoraCacheEnabled(boolean doraCacheEnabled)
doraCacheEnabled
- whether dora worker cache is enabledpublic boolean isUfsFallbackEnabled()
public FileSystemOptions.Builder setUfsFallbackEnabled(boolean ufsFallbackEnabled)
ufsFallbackEnabled
- whether UFS fallback is enabledpublic Optional<UfsFileSystemOptions> getUfsFileSystemOptions()
public FileSystemOptions.Builder setUfsFileSystemOptions(UfsFileSystemOptions ufsFileSystemOptions)
ufsFileSystemOptions
- UFS file system optionspublic FileSystemOptions build()
FileSystemOptions
objectCopyright © 2023. All Rights Reserved.