@NotThreadSafe public final class CreateDirectoryOptions extends CreatePathOptions<CreateDirectoryOptions>
mCommonOptions, mGroup, mMetadataLoad, mMode, mMountPoint, mOperationTimeMs, mOwner, mPersisted, mRecursive
Constructor and Description |
---|
CreateDirectoryOptions(CreateDirectoryTOptions options)
Constructs an instance of
CreateDirectoryOptions from CreateDirectoryTOptions . |
Modifier and Type | Method and Description |
---|---|
static CreateDirectoryOptions |
defaults() |
boolean |
equals(Object o) |
protected CreateDirectoryOptions |
getThis() |
long |
getTtl() |
TtlAction |
getTtlAction() |
UfsStatus |
getUfsStatus() |
int |
hashCode() |
boolean |
isAllowExists() |
CreateDirectoryOptions |
setAllowExists(boolean allowExists) |
CreateDirectoryOptions |
setTtl(long ttl) |
CreateDirectoryOptions |
setTtlAction(TtlAction ttlAction) |
CreateDirectoryOptions |
setUfsStatus(UfsStatus ufsStatus) |
String |
toString() |
getCommonOptions, getGroup, getMode, getOperationTimeMs, getOwner, isMetadataLoad, isMountPoint, isPersisted, isRecursive, setCommonOptions, setGroup, setMetadataLoad, setMode, setMountPoint, setOperationTimeMs, setOwner, setPersisted, setRecursive, toStringHelper
public CreateDirectoryOptions(CreateDirectoryTOptions options)
CreateDirectoryOptions
from CreateDirectoryTOptions
.
The option of permission is constructed with the username obtained from thrift
transport.options
- the CreateDirectoryTOptions
to usepublic static CreateDirectoryOptions defaults()
CreateDirectoryOptions
public boolean isAllowExists()
public long getTtl()
public CreateDirectoryOptions setAllowExists(boolean allowExists)
allowExists
- the allowExists flag value to use; it specifies whether an exception
should be thrown if the object being made already exists.public CreateDirectoryOptions setTtl(long ttl)
ttl
- the TTL (time to live) value to use; it identifies duration (in milliseconds) the
created directory should be kept around before it is automatically deletedpublic CreateDirectoryOptions setTtlAction(TtlAction ttlAction)
ttlAction
- the TtlAction
; It informs the action to take when Ttl is expired;public CreateDirectoryOptions setUfsStatus(UfsStatus ufsStatus)
ufsStatus
- the UfsStatus
; It sets the optional ufsStatus as an optimizationprotected CreateDirectoryOptions getThis()
getThis
in class CreatePathOptions<CreateDirectoryOptions>
public boolean equals(Object o)
equals
in class CreatePathOptions<CreateDirectoryOptions>
public int hashCode()
hashCode
in class CreatePathOptions<CreateDirectoryOptions>
Copyright © 2023. All Rights Reserved.