public final class RamFileSystemConfigBuilder extends FileSystemConfigBuilder
Modifier and Type | Method and Description |
---|---|
protected Class<? extends FileSystem> |
getConfigClass()
Gets the target of this configuration.
|
static RamFileSystemConfigBuilder |
getInstance()
Gets the singleton builder.
|
long |
getLongMaxSize(FileSystemOptions opts)
Defaults to
Integer.MAX_VALUE . |
int |
getMaxSize(FileSystemOptions opts)
Defaults to
Integer.MAX_VALUE . |
void |
setMaxSize(FileSystemOptions opts,
int sizeInBytes)
Deprecated.
|
void |
setMaxSize(FileSystemOptions opts,
long sizeInBytes)
Sets the maximum size of the file system.
|
getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getCharacter, getCharacter, getCharacter, getDouble, getDouble, getDouble, getDuration, getDuration, getDurationInteger, getDurationInteger, getEnum, getEnum, getFloat, getFloat, getFloat, getInteger, getInteger, getInteger, getLong, getLong, getLong, getParam, getRootURI, getShort, getShort, getShort, getString, getString, hasObject, hasParam, setParam, setParam, setRootURI, toBooleanObject
public static RamFileSystemConfigBuilder getInstance()
protected Class<? extends FileSystem> getConfigClass()
getConfigClass
in class FileSystemConfigBuilder
public long getLongMaxSize(FileSystemOptions opts)
Integer.MAX_VALUE
.opts
- The FileSystem options.setMaxSize(FileSystemOptions, long)
public int getMaxSize(FileSystemOptions opts)
Integer.MAX_VALUE
.opts
- The FileSystem options.setMaxSize(FileSystemOptions, int)
@Deprecated public void setMaxSize(FileSystemOptions opts, int sizeInBytes)
setMaxSize(FileSystemOptions, long)
opts
- The FileSystem options.sizeInBytes
- The maximum file size.public void setMaxSize(FileSystemOptions opts, long sizeInBytes)
opts
- The FileSystem options.sizeInBytes
- The maximum file size.Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.