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

org.apache.crunch.fn
Class IdentityFn<T>

java.lang.Object
  extended by org.apache.crunch.DoFn<S,T>
      extended by org.apache.crunch.MapFn<T,T>
          extended by org.apache.crunch.fn.IdentityFn<T>
All Implemented Interfaces:
Serializable

public class IdentityFn<T>
extends MapFn<T,T>

See Also:
Serialized Form

Method Summary
static
<T> IdentityFn<T>
getInstance()
           
 T map(T 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
 

Method Detail

getInstance

public static <T> IdentityFn<T> getInstance()

map

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

Specified by:
map in class MapFn<T,T>


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