This project has retired. For details please refer to its
Attic page .
PTypes.JacksonInputMapFn (Apache Crunch 0.4.0-incubating API)
org.apache.crunch.types
Class PTypes.JacksonInputMapFn<T>
java.lang.Object
org.apache.crunch.DoFn <S,T>
org.apache.crunch.MapFn <String ,T>
org.apache.crunch.types.PTypes.JacksonInputMapFn<T>
All Implemented Interfaces: Serializable
Enclosing class: PTypes
public static class PTypes.JacksonInputMapFn<T> extends MapFn <String ,T>
See Also: Serialized Form
Method Summary
void
initialize ()
Initialize this DoFn.
T
map (String input)
Maps the given input into an instance of the output type.
PTypes.JacksonInputMapFn
public PTypes.JacksonInputMapFn (Class <T > clazz)
initialize
public void initialize ()
Description copied from class: DoFn
Initialize this DoFn. This initialization will happen before the actual
DoFn.process(Object, Emitter)
is triggered. Subclasses may override
this method to do appropriate initialization.
Called during the setup of the job instance this DoFn
is associated
with.
Overrides: initialize
in class DoFn <String ,T >
map
public T map (String input)
Description copied from class: MapFn
Maps the given input into an instance of the output type.
Specified by: map
in class MapFn <String ,T >
Copyright © 2012 The Apache Software Foundation . All Rights Reserved.