com.cloudera.crunch.fn
Class IdentityFn<T>

java.lang.Object
  extended by com.cloudera.crunch.DoFn<S,T>
      extended by com.cloudera.crunch.MapFn<T,T>
          extended by com.cloudera.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 com.cloudera.crunch.MapFn
process, scaleFactor
 
Methods inherited from class com.cloudera.crunch.DoFn
cleanup, configure, getConfiguration, getCounter, getCounter, getStatus, getTaskAttemptID, initialize, progress, setConfigurationForTest, setContext, setStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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 © 2012. All Rights Reserved.