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| Modifier and Type | Method and Description |
|---|---|
static CreateFileContext |
create(CreateFilePOptions.Builder optionsBuilder) |
static CreateFileContext |
defaults() |
protected CreateFileContext |
getThis() |
boolean |
isCacheable() |
static CreateFileContext |
mergeFrom(CreateFilePOptions.Builder optionsBuilder)
Merges and embeds the given
CreateFilePOptions with the corresponding master options. |
CreateFileContext |
setCacheable(boolean cacheable) |
java.lang.String |
toString() |
getAcl, getGroup, getMode, getOperationTimeMs, getOwner, getTtl, getTtlAction, getWriteType, getXAttr, isMetadataLoad, isMountPoint, isPersisted, isRecursive, setAcl, setGroup, setMetadataLoad, setMountPoint, setOperationTimeMs, setOwner, setWriteType, setXAttrgetOptions, isCancelledpublic static CreateFileContext create(CreateFilePOptions.Builder optionsBuilder)
optionsBuilder - Builder for proto CreateFilePOptionsCreateFileContext 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 masterprotected CreateFileContext getThis()
getThis in class CreatePathContext<CreateFilePOptions.Builder,CreateFileContext>public boolean isCacheable()
public CreateFileContext setCacheable(boolean cacheable)
cacheable - true if the file is cacheable, false otherwisepublic java.lang.String toString()
toString in class CreatePathContext<CreateFilePOptions.Builder,CreateFileContext>Copyright © 2019. All Rights Reserved.