| 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 | Class and Description |
|---|---|
class |
LazyAtomicReference<T>
A lazily constructed reference, whose reference
constructor is a
CallableRaisingIOE so
may raise IOExceptions. |
class |
LazyAutoCloseableReference<T extends AutoCloseable>
A subclass of
LazyAtomicReference which
holds an AutoCloseable reference and calls close()
when it itself is closed. |
| Modifier and Type | Method and Description |
|---|---|
protected CallableRaisingIOE<? extends T> |
LazyAtomicReference.getConstructor()
Getter for the constructor.
|
| 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.
|
| Constructor and Description |
|---|
LazyAtomicReference(CallableRaisingIOE<? extends T> constructor)
Constructor for this instance.
|
LazyAutoCloseableReference(CallableRaisingIOE<? extends T> constructor)
Constructor for this instance.
|
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.