com.cloudera.crunch.util
Class PTypes.SmileOutputMapFn<T>
java.lang.Object
com.cloudera.crunch.DoFn<S,T>
com.cloudera.crunch.MapFn<T,ByteBuffer>
com.cloudera.crunch.util.PTypes.SmileOutputMapFn<T>
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- PTypes
public static class PTypes.SmileOutputMapFn<T>
- extends MapFn<T,ByteBuffer>
- See Also:
- Serialized Form
Method Summary |
void |
initialize()
Called during the setup of the MapReduce job this DoFn
is associated with. |
ByteBuffer |
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, progress, setConfigurationForTest, setContext, setStatus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PTypes.SmileOutputMapFn
public PTypes.SmileOutputMapFn()
initialize
public void initialize()
- Description copied from class:
DoFn
- Called during the setup of the MapReduce job this
DoFn
is associated with. Subclasses may override this method to
do appropriate initialization.
- Overrides:
initialize
in class DoFn<T,ByteBuffer>
map
public ByteBuffer 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,ByteBuffer>
Copyright © 2012. All Rights Reserved.