@PublicApi @NotThreadSafe public final class OutStreamOptions extends Object
Constructor and Description |
---|
OutStreamOptions(CreateFilePOptions options,
FileSystemContext context,
AlluxioConfiguration alluxioConf)
Creates an
OutStreamOptions instance from given options. |
public OutStreamOptions(CreateFilePOptions options, FileSystemContext context, AlluxioConfiguration alluxioConf)
OutStreamOptions
instance from given options.options
- CreateFile optionscontext
- Alluxio client contextalluxioConf
- the Alluxio configurationException
- if BlockLocationPolicy
can't be loadedpublic static OutStreamOptions defaults(FileSystemContext context, AlluxioConfiguration alluxioConf)
context
- Alluxio client contextalluxioConf
- the Alluxio configurationOutStreamOptions
public static OutStreamOptions defaults(FileSystemContext context)
context
- Alluxio client contextOutStreamOptions
public String getMediumType()
public AccessControlList getAcl()
public long getBlockSizeBytes()
public BlockLocationPolicy getLocationPolicy()
public AlluxioStorageType getAlluxioStorageType()
public FileSystemMasterCommonPOptions getCommonOptions()
public UnderStorageType getUnderStorageType()
public String getOwner()
public String getGroup()
public Mode getMode()
public long getPersistenceWaitTime()
public int getReplicationDurable()
public int getReplicationMax()
public int getReplicationMin()
public long getMountId()
public String getUfsPath()
public int getWriteTier()
public WriteType getWriteType()
public OutStreamOptions setMediumType(String mediumType)
mediumType
- write medium typepublic OutStreamOptions setAcl(AccessControlList acl)
acl
- the acl to usepublic OutStreamOptions setBlockSizeBytes(long blockSizeBytes)
blockSizeBytes
- the block size to usepublic OutStreamOptions setLocationPolicy(BlockLocationPolicy 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 setPersistenceWaitTime(long persistenceWaitTime)
persistenceWaitTime
- the persistence initial wait timepublic OutStreamOptions setReplicationDurable(int replicationDurable)
replicationDurable
- the number of block replication for durable writepublic OutStreamOptions setReplicationMax(int replicationMax)
replicationMax
- the maximum number of block replicationpublic OutStreamOptions setReplicationMin(int replicationMin)
replicationMin
- the minimum number of block replicationpublic OutStreamOptions setMode(Mode mode)
mode
- the permissionCopyright © 2023. All Rights Reserved.