Spring for Apache Hadoop

org.springframework.yarn.batch.item
Class PassThroughLineDataMapper

java.lang.Object
  extended by org.springframework.yarn.batch.item.PassThroughLineDataMapper
All Implemented Interfaces:
LineDataMapper<java.lang.String>

public class PassThroughLineDataMapper
extends java.lang.Object
implements LineDataMapper<java.lang.String>

Simple LineDataMapper implementation which just passes data as it is.

Author:
Janne Valkealahti

Constructor Summary
PassThroughLineDataMapper()
           
 
Method Summary
 java.lang.String mapLine(java.lang.String line)
          Implementations must implement this method to map the provided line to the parameter type T.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PassThroughLineDataMapper

public PassThroughLineDataMapper()
Method Detail

mapLine

public java.lang.String mapLine(java.lang.String line)
                         throws java.lang.Exception
Description copied from interface: LineDataMapper
Implementations must implement this method to map the provided line to the parameter type T.

Specified by:
mapLine in interface LineDataMapper<java.lang.String>
Parameters:
line - to be mapped
Returns:
mapped object of type T
Throws:
java.lang.Exception - if error occured while parsing.

Spring for Apache Hadoop