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

org.apache.crunch.lib.sort
Class SortFns.TupleKeyFn<V extends Tuple,K extends Tuple>

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.TupleKeyFn<V,K>
All Implemented Interfaces:
Serializable
Enclosing class:
SortFns

public static class SortFns.TupleKeyFn<V extends Tuple,K extends Tuple>
extends MapFn<V,K>

Extracts a composite key from a Tuple instance.

See Also:
Serialized Form

Constructor Summary
SortFns.TupleKeyFn(int[] indices, TupleFactory tupleFactory)
           
 
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

SortFns.TupleKeyFn

public SortFns.TupleKeyFn(int[] indices,
                          TupleFactory tupleFactory)
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 extends Tuple>


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.