com.cloudera.crunch.fn
Class IdentityFn<T>
java.lang.Object
com.cloudera.crunch.DoFn<S,T>
com.cloudera.crunch.MapFn<T,T>
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
|
getInstance()
|
T |
map(T input)
Maps the given input into an instance of the output type. |
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 |
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.