public class CreateDirectoryContext extends CreatePathContext<CreateDirectoryPOptions.Builder,CreateDirectoryContext>
CreateDirectoryPOptions
.Modifier and Type | Field and Description |
---|---|
protected List<AclEntry> |
mDefaultAcl |
mAcl, mGroup, mMetadataLoad, mMode, mMountPoint, mOperationTimeMs, mOwner, mRecursive, mTtl, mTtlAction, mXAttr
Modifier and Type | Method and Description |
---|---|
static CreateDirectoryContext |
create(CreateDirectoryPOptions.Builder optionsBuilder) |
static CreateDirectoryContext |
defaults() |
List<AclEntry> |
getDefaultAcl() |
UfsStatus |
getUfsStatus() |
static CreateDirectoryContext |
mergeFrom(CreateDirectoryPOptions.Builder optionsBuilder)
Merges and embeds the given
CreateDirectoryPOptions with the corresponding master
options. |
CreateDirectoryContext |
setDefaultAcl(List<AclEntry> defaultAcl)
Sets the default ACL in the context.
|
CreateDirectoryContext |
setUfsStatus(UfsStatus ufsStatus)
Sets
UfsStatus for the directory. |
String |
toString() |
getAcl, getGroup, getMode, getOperationTimeMs, getOwner, getThis, getTtl, getTtlAction, getWriteType, getXAttr, isMetadataLoad, isMountPoint, isPersisted, isRecursive, setAcl, setGroup, setMetadataLoad, setMountPoint, setOperationTimeMs, setOwner, setWriteType, setXAttr
getCancelledTrackers, getOptions, withTracker
public static CreateDirectoryContext create(CreateDirectoryPOptions.Builder optionsBuilder)
optionsBuilder
- Builder for proto CreateDirectoryPOptions
CreateDirectoryContext
with given optionspublic static CreateDirectoryContext mergeFrom(CreateDirectoryPOptions.Builder optionsBuilder)
CreateDirectoryPOptions
with the corresponding master
options.optionsBuilder
- Builder for proto CreateDirectoryPOptions
to merge with defaultsCreateDirectoryContext
with default values for masterpublic static CreateDirectoryContext defaults()
CreateDirectoryContext
with default values for masterpublic UfsStatus getUfsStatus()
public CreateDirectoryContext setUfsStatus(UfsStatus ufsStatus)
UfsStatus
for the directory.ufsStatus
- Ufs status to setpublic CreateDirectoryContext setDefaultAcl(List<AclEntry> defaultAcl)
defaultAcl
- a list of default ACL Entriespublic List<AclEntry> getDefaultAcl()
public String toString()
toString
in class CreatePathContext<CreateDirectoryPOptions.Builder,CreateDirectoryContext>
Copyright © 2023. All Rights Reserved.