@PublicApi @NotThreadSafe public class OutStreamOptions extends Object
Modifier | Constructor and Description |
---|---|
|
OutStreamOptions(CreateFilePOptions options,
FileSystemContext context,
AlluxioConfiguration alluxioConf)
Creates an
OutStreamOptions instance from given options. |
protected |
OutStreamOptions(FileSystemContext context,
AlluxioConfiguration alluxioConf) |
public OutStreamOptions(CreateFilePOptions options, FileSystemContext context, AlluxioConfiguration alluxioConf)
OutStreamOptions
instance from given options.options
- CreateFile optionscontext
- Alluxio client contextalluxioConf
- the Alluxio configurationprotected OutStreamOptions(FileSystemContext context, AlluxioConfiguration alluxioConf)
public 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 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 useprotected OutStreamOptions setCommonOptions(FileSystemMasterCommonPOptions commonOptions)
commonOptions
- the FileSystem Master Common POptions(only for copy)public 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.