This project has retired. For details please refer to its Attic page.
SortFns.SingleKeyFn (Apache Crunch 0.11.0 API)

Class SortFns.SingleKeyFn<V extends Tuple,K>

  extended by org.apache.crunch.DoFn<S,T>
      extended by org.apache.crunch.MapFn<V,K>
          extended by org.apache.crunch.lib.sort.SortFns.SingleKeyFn<V,K>
All Implemented Interfaces:
Enclosing class:

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

Constructor Summary
SortFns.SingleKeyFn(int index)
Method Summary
 K map(V input)
          Maps the given input into an instance of the output type.
Methods inherited from class org.apache.crunch.MapFn
process, scaleFactor
Methods inherited from class org.apache.crunch.DoFn
cleanup, configure, disableDeepCopy, initialize, setConfiguration, setContext
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public SortFns.SingleKeyFn(int index)
Method Detail


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 © 2014 The Apache Software Foundation. All Rights Reserved.