@InterfaceAudience.Public @InterfaceStability.Unstable
See: Description
| Interface | Description |
|---|---|
| BiFunctionRaisingIOE<T,U,R> |
Function of arity 2 which may raise an IOException.
|
| CallableRaisingIOE<R> |
This is a callable which only raises an IOException.
|
| ConsumerRaisingIOE<T> |
Version of java.util.function.Consumer which raises
exceptions.
|
| Function4RaisingIOE<I1,I2,I3,I4,R> |
Function of arity 4 which may raise an IOException.
|
| FunctionRaisingIOE<T,R> |
Function of arity 1 which may raise an IOException.
|
| InvocationRaisingIOE |
This is a lambda-expression which may raises an IOException.
|
| TaskPool.FailureTask<I,E extends Exception> |
Callback invoked on a failure.
|
| TaskPool.Submitter |
Interface to whatever lets us submit tasks.
|
| TaskPool.Task<I,E extends Exception> |
Callback invoked to process an item.
|
| Class | Description |
|---|---|
| CloseableTaskPoolSubmitter |
A task submitter which is closeable, and whose close() call
shuts down the pool.
|
| CommonCallableSupplier<T> |
A bridge from Callable to Supplier; catching exceptions
raised by the callable and wrapping them as appropriate.
|
| FutureIO |
Future IO Helper methods.
|
| RemoteIterators |
A set of remote iterators supporting transformation and filtering,
with IOStatisticsSource passthrough, and of conversions of
the iterators to lists/arrays and of performing actions
on the values.
|
| RemoteIterators.WrappingRemoteIterator<S,T> |
Wrapper of another remote iterator; IOStatistics
and Closeable methods are passed down if implemented.
|
| TaskPool.Builder<I> |
Builder for task execution.
|
Pretty much all the Hadoop FS APIs raise IOExceptions, hence the need for these classes. If Java had made a different decision about the nature of exceptions, life would be better.
Do note that theRemoteIterators
iterators go beyond that of the java ones, in terms of declaring themselves
Closeable and implementors of
IOStatisticsSource; a chain
of wrapped iterators can supply statistics of the inner iterators, and
encourage close() to be called after use.Copyright © 2008–2023 Apache Software Foundation. All rights reserved.