com.cloudera.crunch.util
Class PTypes.ProtoOutputMapFn<T extends com.google.protobuf.Message>
java.lang.Object
com.cloudera.crunch.DoFn<S,T>
com.cloudera.crunch.MapFn<T,ByteBuffer>
com.cloudera.crunch.util.PTypes.ProtoOutputMapFn<T>
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- PTypes
public static class PTypes.ProtoOutputMapFn<T extends com.google.protobuf.Message>
- extends MapFn<T,ByteBuffer>
- See Also:
- Serialized Form
Method Summary |
ByteBuffer |
map(T proto)
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 |
PTypes.ProtoOutputMapFn
public PTypes.ProtoOutputMapFn()
map
public ByteBuffer map(T proto)
- Description copied from class:
MapFn
- Maps the given input into an instance of the output type.
- Specified by:
map
in class MapFn<T extends com.google.protobuf.Message,ByteBuffer>
Copyright © 2012. All Rights Reserved.