private class CleanerChore.CleanerTask extends RecursiveTask<Boolean>
| Modifier and Type | Field and Description |
|---|---|
private org.apache.hadoop.fs.Path |
dir |
private boolean |
root |
| Constructor and Description |
|---|
CleanerTask(org.apache.hadoop.fs.FileStatus dir,
boolean root) |
CleanerTask(org.apache.hadoop.fs.Path dir,
boolean root) |
| Modifier and Type | Method and Description |
|---|---|
protected Boolean |
compute() |
private boolean |
deleteAction(CleanerChore.Action<Boolean> deletion,
String type)
Perform a delete on a specified type.
|
private boolean |
getCleanResult(List<CleanerChore.CleanerTask> tasks)
Get cleaner results of subdirs.
|
private List<org.apache.hadoop.fs.FileStatus> |
getFilteredStatus(org.apache.hbase.thirdparty.com.google.common.base.Predicate<org.apache.hadoop.fs.FileStatus> function)
Get FileStatus with filter.
|
exec, getRawResult, setRawResultadapt, adapt, adapt, cancel, compareAndSetForkJoinTaskTag, complete, completeExceptionally, fork, get, get, getException, getForkJoinTaskTag, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollTask, quietlyComplete, quietlyInvoke, quietlyJoin, reinitialize, setForkJoinTaskTag, tryUnforkCleanerTask(org.apache.hadoop.fs.FileStatus dir, boolean root)
CleanerTask(org.apache.hadoop.fs.Path dir, boolean root)
protected Boolean compute()
compute in class RecursiveTask<Boolean>private List<org.apache.hadoop.fs.FileStatus> getFilteredStatus(org.apache.hbase.thirdparty.com.google.common.base.Predicate<org.apache.hadoop.fs.FileStatus> function) throws IOException
function - a filter functionIOException - if there's an error other than dir not existingprivate boolean deleteAction(CleanerChore.Action<Boolean> deletion, String type)
deletion - a deletetype - possible values are 'files', 'subdirs', 'dirs'private boolean getCleanResult(List<CleanerChore.CleanerTask> tasks) throws IOException
tasks - subdirs cleaner tasksIOException - something happen during computationCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.