@PublicApi @NotThreadSafe public final class CreateOptions extends Object
Modifier and Type | Method and Description |
---|---|
static CreateOptions |
defaults(AlluxioConfiguration conf) |
boolean |
equals(Object o) |
AccessControlList |
getAcl() |
boolean |
getCreateParent() |
String |
getGroup() |
Mode |
getMode() |
String |
getOwner() |
int |
hashCode() |
boolean |
isEnsureAtomic() |
CreateOptions |
setAcl(AccessControlList acl)
Sets an initial acl for the newly created file.
|
CreateOptions |
setCreateParent(boolean createParent)
Sets option to force creation of parent directories.
|
CreateOptions |
setEnsureAtomic(boolean atomic)
Set atomicity guarantees.
|
CreateOptions |
setGroup(String group) |
CreateOptions |
setMode(Mode mode) |
CreateOptions |
setOwner(String owner) |
String |
toString() |
public static CreateOptions defaults(AlluxioConfiguration conf)
conf
- Alluxio configurationCreateOptions
public AccessControlList getAcl()
public boolean getCreateParent()
public String getOwner()
public String getGroup()
public Mode getMode()
public boolean isEnsureAtomic()
public CreateOptions setAcl(AccessControlList acl)
acl
- option to set the ACL after creationpublic CreateOptions setCreateParent(boolean createParent)
createParent
- option to force parent directory creationpublic CreateOptions setEnsureAtomic(boolean atomic)
atomic
- whether to ensure created stream is atomicpublic CreateOptions setOwner(String owner)
owner
- the owner to setpublic CreateOptions setGroup(String group)
group
- the group to setpublic CreateOptions setMode(Mode mode)
mode
- the mode to setCopyright © 2023. All Rights Reserved.