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
  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:
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

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, setContext
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortFns.SingleKeyFn

public SortFns.SingleKeyFn(int index)
Method Detail

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.