This project has retired. For details please refer to its
Attic page.
PTypes.ThriftOutputMapFn (Apache Crunch 0.3.0-incubating API)
org.apache.crunch.util
Class PTypes.ThriftOutputMapFn<T extends org.apache.thrift.TBase>
java.lang.Object
org.apache.crunch.DoFn<S,T>
org.apache.crunch.MapFn<T,ByteBuffer>
org.apache.crunch.util.PTypes.ThriftOutputMapFn<T>
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- PTypes
public static class PTypes.ThriftOutputMapFn<T extends org.apache.thrift.TBase>
- 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 t)
Maps the given input into an instance of the output type. |
PTypes.ThriftOutputMapFn
public PTypes.ThriftOutputMapFn()
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 extends org.apache.thrift.TBase,ByteBuffer>
map
public ByteBuffer map(T t)
- Description copied from class:
MapFn
- Maps the given input into an instance of the output type.
- Specified by:
map
in class MapFn<T extends org.apache.thrift.TBase,ByteBuffer>
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.