public static class OutStreamOptions.Builder extends Object
Constructor and Description |
---|
OutStreamOptions.Builder(TachyonConf conf)
Creates a new builder for
OutStreamOptions . |
Modifier and Type | Method and Description |
---|---|
OutStreamOptions |
build()
Builds a new instance of
OutStreamOptions . |
OutStreamOptions.Builder |
setBlockSizeBytes(long blockSizeBytes) |
OutStreamOptions.Builder |
setHostname(String hostname) |
OutStreamOptions.Builder |
setTachyonStorageType(TachyonStorageType tachyonStorageType)
This is an advanced API, use
setWriteType(tachyon.client.WriteType) when possible. |
OutStreamOptions.Builder |
setTTL(long ttl) |
OutStreamOptions.Builder |
setUnderStorageType(UnderStorageType underStorageType)
This is an advanced API, use
setWriteType(tachyon.client.WriteType) when possible. |
OutStreamOptions.Builder |
setWriteType(WriteType writeType) |
public OutStreamOptions.Builder(TachyonConf conf)
OutStreamOptions
.conf
- a Tachyon configurationpublic OutStreamOptions.Builder setBlockSizeBytes(long blockSizeBytes)
blockSizeBytes
- the block size to usepublic OutStreamOptions.Builder setHostname(String hostname)
hostname
- the hostname to usepublic OutStreamOptions.Builder setTachyonStorageType(TachyonStorageType tachyonStorageType)
setWriteType(tachyon.client.WriteType)
when possible.tachyonStorageType
- the Tachyon storage type to usepublic OutStreamOptions.Builder setUnderStorageType(UnderStorageType underStorageType)
setWriteType(tachyon.client.WriteType)
when possible.underStorageType
- the under storage type to usepublic OutStreamOptions.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 OutStreamOptions.Builder setWriteType(WriteType writeType)
writeType
- the WriteType
to use for this operation. This will
override both the TachyonStorageType and UnderStorageType.public OutStreamOptions build()
OutStreamOptions
.OutStreamOptions
instanceCopyright © 2015. All Rights Reserved.