public class ValueMapper<T> extends Object implements TupleValueMapper<T>
Extracts a single typed value from a tuple.
| Constructor and Description |
|---|
ValueMapper(int index)
Constructs a new
ValueMapper that extracts the value at index ‘i’ from a tuple. |
| Modifier and Type | Method and Description |
|---|---|
T |
apply(Tuple input)
Applies this function to the given argument.
|
public ValueMapper(int index)
Constructs a new ValueMapper that extracts the value at index ‘i’ from a tuple.
index - the indexCopyright © 2021 The Apache Software Foundation. All rights reserved.