@PublicApi @NotThreadSafe public final class OutStreamOptions extends java.lang.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 configurationjava.lang.Exception - if BlockLocationPolicy can't be loadedpublic static OutStreamOptions defaults(FileSystemContext context, AlluxioConfiguration alluxioConf)
context - Alluxio client contextalluxioConf - the Alluxio configurationOutStreamOptionspublic static OutStreamOptions defaults(FileSystemContext context)
context - Alluxio client contextOutStreamOptionspublic java.lang.String getMediumType()
public AccessControlList getAcl()
public long getBlockSizeBytes()
public BlockLocationPolicy getLocationPolicy()
public AlluxioStorageType getAlluxioStorageType()
public FileSystemMasterCommonPOptions getCommonOptions()
public UnderStorageType getUnderStorageType()
public java.lang.String getOwner()
public java.lang.String getGroup()
public Mode getMode()
public long getPersistenceWaitTime()
public int getReplicationDurable()
public int getReplicationMax()
public int getReplicationMin()
public long getMountId()
public java.lang.String getUfsPath()
public int getWriteTier()
public WriteType getWriteType()
public OutStreamOptions setMediumType(java.lang.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(java.lang.String ufsPath)
ufsPath - the ufs pathpublic OutStreamOptions setOwner(java.lang.String owner)
owner - the owner to setpublic OutStreamOptions setGroup(java.lang.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 permissionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2022. All Rights Reserved.