This project has retired. For details please refer to its
Attic page.
SortFns.SingleKeyFn (Apache Crunch 0.8.0 API)
org.apache.crunch.lib.sort
Class SortFns.SingleKeyFn<V extends Tuple,K>
java.lang.Object
org.apache.crunch.DoFn<S,T>
org.apache.crunch.MapFn<V,K>
org.apache.crunch.lib.sort.SortFns.SingleKeyFn<V,K>
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- SortFns
public static class SortFns.SingleKeyFn<V extends Tuple,K>
- extends MapFn<V,K>
Extracts a single indexed key from a Tuple
instance.
- See Also:
- Serialized Form
Method Summary |
K |
map(V input)
Maps the given input into an instance of the output type. |
SortFns.SingleKeyFn
public SortFns.SingleKeyFn(int index)
map
public K map(V input)
- Description copied from class:
MapFn
- Maps the given input into an instance of the output type.
- Specified by:
map
in class MapFn<V extends Tuple,K>
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.