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) |
| 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)
@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–2022 Apache Software Foundation. All rights reserved.