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) |
Modifier and Type | Method and Description |
---|---|
Boolean |
execute()
Make the given path and all non-existent parents into
directories.
|
apply, executeOnlyOnce
activateAuditSpan, getAuditSpan, getStoreContext
public MkdirOperation(StoreContext storeContext, org.apache.hadoop.fs.Path dir, MkdirOperation.MkdirCallbacks callbacks, boolean isMagicPath)
@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.