This project has retired. For details please refer to its Attic page.
Protos.ExtractKeyFn (Apache Crunch 0.4.0-incubating API)

org.apache.crunch.types
Class Protos.ExtractKeyFn<M extends com.google.protobuf.Message,K>

java.lang.Object
  extended by org.apache.crunch.DoFn<S,T>
      extended by org.apache.crunch.MapFn<M,K>
          extended by org.apache.crunch.types.Protos.ExtractKeyFn<M,K>
All Implemented Interfaces:
Serializable
Enclosing class:
Protos

public static class Protos.ExtractKeyFn<M extends com.google.protobuf.Message,K>
extends MapFn<M,K>

See Also:
Serialized Form

Constructor Summary
Protos.ExtractKeyFn(String fieldName)
           
 
Method Summary
 K map(M 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, initialize, setContext
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Protos.ExtractKeyFn

public Protos.ExtractKeyFn(String fieldName)
Method Detail

map

public K map(M input)
Description copied from class: MapFn
Maps the given input into an instance of the output type.

Specified by:
map in class MapFn<M extends com.google.protobuf.Message,K>


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