@PublicApi @NotThreadSafe public final class OutStreamOptions extends Object
public static OutStreamOptions defaults()
OutStreamOptions
public long getBlockSizeBytes()
public FileWriteLocationPolicy getLocationPolicy()
public AlluxioStorageType getAlluxioStorageType()
public long getTtl()
public UnderStorageType getUnderStorageType()
public String getOwner()
public String getGroup()
public Mode getMode()
public long getMountId()
public String getUfsPath()
public int getWriteTier()
public WriteType getWriteType()
public OutStreamOptions setBlockSizeBytes(long blockSizeBytes)
blockSizeBytes
- the block size to usepublic OutStreamOptions 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 setTtlAction(TtlAction ttlAction)
ttlAction
- the TtlAction
to usepublic OutStreamOptions setLocationPolicy(FileWriteLocationPolicy locationPolicy)
locationPolicy
- the file write location policypublic OutStreamOptions setWriteTier(int writeTier)
writeTier
- the write tier to use for this operationpublic OutStreamOptions setWriteType(WriteType writeType)
WriteType
.writeType
- the WriteType
to use for this operation. This will override both the
AlluxioStorageType
and UnderStorageType
.public OutStreamOptions setMountId(long mountId)
mountId
- the mount idpublic OutStreamOptions setUfsPath(String ufsPath)
ufsPath
- the ufs pathpublic OutStreamOptions setOwner(String owner)
owner
- the owner to setpublic OutStreamOptions setGroup(String group)
group
- the group to setpublic OutStreamOptions setMode(Mode mode)
mode
- the permissionCopyright © 2023. All Rights Reserved.