@PublicApi @NotThreadSafe public final class CreateFileOptions extends Object
public static CreateFileOptions defaults()
CreateFileOptions
public CommonOptions getCommonOptions()
public long getBlockSizeBytes()
public FileWriteLocationPolicy getLocationPolicy()
public String getLocationPolicyClass()
public long getTtl()
public Mode getMode()
public int getWriteTier()
public WriteType getWriteType()
public boolean isRecursive()
public CreateFileOptions setCommonOptions(CommonOptions options)
options
- the common optionspublic CreateFileOptions setBlockSizeBytes(long blockSizeBytes)
blockSizeBytes
- the block size to usepublic CreateFileOptions setLocationPolicy(FileWriteLocationPolicy locationPolicy)
locationPolicy
- the location policy to usepublic CreateFileOptions setLocationPolicyClass(String className)
className
- the location policy class to use when storing data to Alluxiopublic CreateFileOptions setMode(Mode mode)
mode
- the mode to be setpublic CreateFileOptions setRecursive(boolean recursive)
recursive
- whether or not to recursively create the file's parentspublic CreateFileOptions 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 CreateFileOptions setTtlAction(TtlAction ttlAction)
ttlAction
- the TtlAction
to usepublic CreateFileOptions setWriteTier(int writeTier)
writeTier
- the write tier to use for this operationpublic CreateFileOptions setWriteType(WriteType writeType)
writeType
- the WriteType
to use for this operation. This will override both the
AlluxioStorageType
and UnderStorageType
.public OutStreamOptions toOutStreamOptions()
OutStreamOptions
public CreateFileTOptions toThrift()
Copyright © 2023. All Rights Reserved.