@InterfaceAudience.Private @InterfaceStability.Evolving public class MkdirOperation extends ExecutingStoreOperation<Boolean>
| Modifier and Type | Class and Description |
|---|---|
static interface |
MkdirOperation.MkdirCallbacks
Callbacks used by mkdir.
|
| Constructor and Description |
|---|
MkdirOperation(StoreContext storeContext,
org.apache.hadoop.fs.Path dir,
MkdirOperation.MkdirCallbacks callbacks,
boolean isMagicPath,
boolean performanceMkdir)
Initialize Mkdir Operation context for S3A.
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
execute()
Make the given path and all non-existent parents into
directories.
|
apply, executeOnlyOnceactivateAuditSpan, getAuditSpan, getStoreContextpublic MkdirOperation(StoreContext storeContext, org.apache.hadoop.fs.Path dir, MkdirOperation.MkdirCallbacks callbacks, boolean isMagicPath, boolean performanceMkdir)
storeContext - Store context.dir - Dir path of the directory.callbacks - MkdirCallbacks object used by the Mkdir operation.isMagicPath - True if the path is magic commit path.performanceMkdir - If true, skip validation of the parent directory
structure.@Retries.RetryTranslated public Boolean execute() throws IOException
execute in class ExecutingStoreOperation<Boolean>org.apache.hadoop.fs.FileAlreadyExistsException - there is a file at the path specifiedIOException - other IO problemsCopyright © 2008–2024 Apache Software Foundation. All rights reserved.