| Package | Description |
|---|---|
| org.apache.hadoop.fs.statistics.impl |
Implementation support for statistics.
|
| org.apache.hadoop.util.functional |
Support for functional programming within the Hadoop APIs.
|
| Modifier and Type | Method and Description |
|---|---|
static <B> CallableRaisingIOE<B> |
IOStatisticsBinding.trackDurationOfOperation(DurationTrackerFactory factory,
String statistic,
CallableRaisingIOE<B> input)
Given an IOException raising callable/lambda expression,
return a new one which wraps the inner and tracks
the duration of the operation, including whether
it passes/fails.
|
| Modifier and Type | Method and Description |
|---|---|
static <B> B |
IOStatisticsBinding.invokeTrackingDuration(DurationTracker tracker,
CallableRaisingIOE<B> input)
Given an IOException raising callable/lambda expression,
execute it, updating the tracker on success/failure.
|
static <B> B |
IOStatisticsBinding.trackDuration(DurationTrackerFactory factory,
String statistic,
CallableRaisingIOE<B> input)
Given an IOException raising callable/lambda expression,
execute it and update the relevant statistic.
|
static <B> CallableRaisingIOE<B> |
IOStatisticsBinding.trackDurationOfOperation(DurationTrackerFactory factory,
String statistic,
CallableRaisingIOE<B> input)
Given an IOException raising callable/lambda expression,
return a new one which wraps the inner and tracks
the duration of the operation, including whether
it passes/fails.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> CompletableFuture<T> |
FutureIO.eval(CallableRaisingIOE<T> callable)
Evaluate a CallableRaisingIOE in the current thread,
converting IOEs to RTEs and propagating.
|
static <S> RemoteIterator<S> |
RemoteIterators.haltableRemoteIterator(RemoteIterator<S> iterator,
CallableRaisingIOE<Boolean> continueWork)
Wrap an iterator with one which adds a continuation probe.
|
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.