public static class CreateOptions.Builder extends Object
Constructor and Description |
---|
CreateOptions.Builder(TachyonConf conf)
Creates a new builder for
CreateOptions . |
Modifier and Type | Method and Description |
---|---|
CreateOptions |
build()
Builds a new instance of
CreateOptions . |
CreateOptions.Builder |
setBlockSizeBytes(long blockSizeBytes) |
CreateOptions.Builder |
setRecursive(boolean recursive) |
CreateOptions.Builder |
setTTL(long ttl) |
CreateOptions.Builder |
setUnderStorageType(UnderStorageType underStorageType)
This is an advanced API, use
setWriteType(tachyon.client.WriteType) when possible. |
CreateOptions.Builder |
setWriteType(WriteType writeType) |
public CreateOptions.Builder(TachyonConf conf)
CreateOptions
.conf
- a Tachyon configurationpublic CreateOptions.Builder setBlockSizeBytes(long blockSizeBytes)
blockSizeBytes
- the block size to usepublic CreateOptions.Builder setRecursive(boolean recursive)
recursive
- the recursive flag value to use; it specifies whether parent directories
should be created if they do not already existpublic CreateOptions.Builder setTTL(long ttl)
ttl
- the TTL (time to live) value to use; it identifies duration (in milliseconds) the
created file should be kept around before it is automatically deleted, no matter
whether the file is pinnedpublic CreateOptions.Builder setUnderStorageType(UnderStorageType underStorageType)
setWriteType(tachyon.client.WriteType)
when possible.underStorageType
- the under storage type to usepublic CreateOptions.Builder setWriteType(WriteType writeType)
writeType
- the write type to usepublic CreateOptions build()
CreateOptions
.CreateOptions
instanceCopyright © 2015. All Rights Reserved.