@PublicApi @NotThreadSafe public class CreateOptions extends Object
Modifier | Constructor and Description |
---|---|
protected |
CreateOptions(String authUmask)
Constructs a default
CreateOptions . |
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() |
boolean |
isMultipartUploadEnabled() |
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 |
setMultipartUploadEnabled(boolean value) |
CreateOptions |
setOwner(String owner) |
String |
toString() |
protected CreateOptions(String authUmask)
CreateOptions
.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 boolean isMultipartUploadEnabled()
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 setpublic CreateOptions setMultipartUploadEnabled(boolean value)
value
- if multipart upload is enabledCopyright © 2023. All Rights Reserved.