public class CreateFileContext extends CreatePathContext<CreateFilePOptions.Builder,CreateFileContext>
OperationContext
used to merge and wrap CreateFilePOptions
.mAcl, mGroup, mMetadataLoad, mMode, mMountPoint, mOperationTimeMs, mOwner, mRecursive, mTtl, mTtlAction, mXAttr, mXAttrPropStrat
Modifier and Type | Method and Description |
---|---|
static CreateFileContext |
create(CreateFilePOptions.Builder optionsBuilder) |
static CreateFileContext |
defaults() |
OperationId |
getOperationId()
Get embedded operation id, passed via proto options.
|
boolean |
isCacheable() |
static CreateFileContext |
mergeFrom(CreateFilePOptions.Builder optionsBuilder)
Merges and embeds the given
CreateFilePOptions with the corresponding master options. |
CreateFileContext |
setCacheable(boolean cacheable) |
String |
toString() |
getAcl, getGroup, getMode, getOperationTimeMs, getOwner, getThis, getTtl, getTtlAction, getWriteType, getXAttr, getXAttrPropStrat, isMetadataLoad, isMountPoint, isPersisted, isRecursive, setAcl, setGroup, setMetadataLoad, setMountPoint, setOperationTimeMs, setOwner, setWriteType, setXAttr
getCancelledTrackers, getOptions, withTracker
public static CreateFileContext create(CreateFilePOptions.Builder optionsBuilder)
optionsBuilder
- Builder for proto CreateFilePOptions
CreateFileContext
with given optionspublic static CreateFileContext mergeFrom(CreateFilePOptions.Builder optionsBuilder)
CreateFilePOptions
with the corresponding master options.optionsBuilder
- Builder for proto CreateFilePOptions
to embedCreateFileContext
with default values for masterpublic static CreateFileContext defaults()
CreateFileContext
with default values for masterpublic boolean isCacheable()
public CreateFileContext setCacheable(boolean cacheable)
cacheable
- true if the file is cacheable, false otherwisepublic OperationId getOperationId()
OperationContext
getOperationId
in class OperationContext<CreateFilePOptions.Builder,CreateFileContext>
null
if not foundpublic String toString()
toString
in class CreatePathContext<CreateFilePOptions.Builder,CreateFileContext>
Copyright © 2023. All Rights Reserved.