@NotThreadSafe public final class CreateFileOptions extends CreatePathOptions<CreateFileOptions>
mCommonOptions, mGroup, mMetadataLoad, mMode, mMountPoint, mOperationTimeMs, mOwner, mPersisted, mRecursive
Constructor and Description |
---|
CreateFileOptions(CreateFileTOptions options)
Constructs an instance of
CreateFileOptions from CreateFileTOptions . |
Modifier and Type | Method and Description |
---|---|
static CreateFileOptions |
defaults() |
boolean |
equals(Object o) |
long |
getBlockSizeBytes() |
protected CreateFileOptions |
getThis() |
long |
getTtl() |
TtlAction |
getTtlAction() |
int |
hashCode() |
boolean |
isCacheable() |
CreateFileOptions |
setBlockSizeBytes(long blockSizeBytes) |
CreateFileOptions |
setCacheable(boolean cacheable) |
CreateFileOptions |
setTtl(long ttl) |
CreateFileOptions |
setTtlAction(TtlAction ttlAction) |
String |
toString() |
getCommonOptions, getGroup, getMode, getOperationTimeMs, getOwner, isMetadataLoad, isMountPoint, isPersisted, isRecursive, setCommonOptions, setGroup, setMetadataLoad, setMode, setMountPoint, setOperationTimeMs, setOwner, setPersisted, setRecursive, toStringHelper
public CreateFileOptions(CreateFileTOptions options)
CreateFileOptions
from CreateFileTOptions
. The option
of permission is constructed with the username obtained from thrift transport.options
- the CreateFileTOptions
to usepublic static CreateFileOptions defaults()
CreateFileOptions
public long getBlockSizeBytes()
public boolean isCacheable()
public long getTtl()
public CreateFileOptions setBlockSizeBytes(long blockSizeBytes)
blockSizeBytes
- the block size to usepublic CreateFileOptions setCacheable(boolean cacheable)
cacheable
- true if the file is cacheable, false otherwisepublic 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 deletedpublic CreateFileOptions setTtlAction(TtlAction ttlAction)
ttlAction
- the TtlAction
; It informs the action to take when Ttl is expired;protected CreateFileOptions getThis()
getThis
in class CreatePathOptions<CreateFileOptions>
public boolean equals(Object o)
equals
in class CreatePathOptions<CreateFileOptions>
public int hashCode()
hashCode
in class CreatePathOptions<CreateFileOptions>
Copyright © 2023. All Rights Reserved.