org.apache.crunch.util
Class PTypes.ProtoOutputMapFn<T extends com.google.protobuf.Message>
java.lang.Object
org.apache.crunch.DoFn<S,T>
org.apache.crunch.MapFn<T,ByteBuffer>
org.apache.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. |
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 The Apache Software Foundation. All Rights Reserved.