com.cloudera.crunch.util
Class PTypes.ProtoOutputMapFn<T extends com.google.protobuf.Message>

java.lang.Object
  extended by com.cloudera.crunch.DoFn<S,T>
      extended by com.cloudera.crunch.MapFn<T,ByteBuffer>
          extended by 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

Constructor Summary
PTypes.ProtoOutputMapFn()
           
 
Method Summary
 ByteBuffer map(T proto)
          Maps the given input into an instance of the output type.
 
Methods inherited from class com.cloudera.crunch.MapFn
process, scaleFactor
 
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
 

Constructor Detail

PTypes.ProtoOutputMapFn

public PTypes.ProtoOutputMapFn()
Method Detail

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.