@PublicApi @NotThreadSafe public final class OpenFileOptions extends Object
public static OpenFileOptions defaults()
InStreamOptions
@Deprecated public FileWriteLocationPolicy getLocationPolicy()
getCacheLocationPolicy()
.public FileWriteLocationPolicy getCacheLocationPolicy()
@Deprecated public String getLocationPolicyClass()
getCacheLocationPolicyClass()
.public String getCacheLocationPolicyClass()
public ReadType getReadType()
public int getMaxUfsReadConcurrency()
public BlockLocationPolicy getUfsReadLocationPolicy()
public String getUfsReadLocationPolicyClass()
@Deprecated public OpenFileOptions setLocationPolicy(FileWriteLocationPolicy locationPolicy)
setCacheLocationPolicy(FileWriteLocationPolicy)
.locationPolicy
- the location policy to use when storing data to Alluxiopublic OpenFileOptions setCacheLocationPolicy(FileWriteLocationPolicy locationPolicy)
locationPolicy
- the location policy to use when storing data to Alluxiopublic OpenFileOptions setUfsReadLocationPolicy(BlockLocationPolicy policy)
policy
- the block location policy for the UFS read@Deprecated public OpenFileOptions setLocationPolicyClass(String className)
setCacheLocationPolicyClass(String)
.className
- the location policy class to use when storing data to Alluxiopublic OpenFileOptions setCacheLocationPolicyClass(String className)
className
- the location policy class to use when storing data to Alluxiopublic OpenFileOptions setUfsReadLocationPolicyClass(String className)
className
- the location policy class to determine where to read a UFS blockpublic OpenFileOptions setReadType(ReadType readType)
readType
- the ReadType
for this operationpublic OpenFileOptions setMaxUfsReadConcurrency(int maxUfsReadConcurrency)
maxUfsReadConcurrency
- the maximum UFS read concurrencypublic InStreamOptions toInStreamOptions(URIStatus status)
status
- the URIStatus
which will be readInStreamOptions
representation of the read options applied to the fileCopyright © 2023. All Rights Reserved.