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 <A,B> FunctionRaisingIOE<A,B> |
IOStatisticsBinding.trackFunctionDuration(DurationTrackerFactory factory,
String statistic,
FunctionRaisingIOE<A,B> inputFn)
Given an IOException raising function/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 <A,B> FunctionRaisingIOE<A,B> |
IOStatisticsBinding.trackFunctionDuration(DurationTrackerFactory factory,
String statistic,
FunctionRaisingIOE<A,B> inputFn)
Given an IOException raising function/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 <S> RemoteIterator<S> |
RemoteIterators.filteringRemoteIterator(RemoteIterator<S> iterator,
FunctionRaisingIOE<? super S,Boolean> filter)
Create a RemoteIterator from a RemoteIterator and a filter
function which returns true for every element to be passed
through.
|
static <S,T> RemoteIterator<T> |
RemoteIterators.mappingRemoteIterator(RemoteIterator<S> iterator,
FunctionRaisingIOE<? super S,T> mapper)
Create an iterator from an iterator and a transformation function.
|
Copyright © 2008–2021 Apache Software Foundation. All rights reserved.