Spring for Apache Hadoop

org.springframework.yarn.batch.item
Interface LineDataMapper<T>

Type Parameters:
T - the type of the domain object
All Known Implementing Classes:
PassThroughLineDataMapper

public interface LineDataMapper<T>

Interface for mapping lines (strings) to domain objects. Implementations of this interface perform the actual work of parsing a line without having to deal with how the line was obtained.


Method Summary
 T mapLine(java.lang.String line)
          Implementations must implement this method to map the provided line to the parameter type T.
 

Method Detail

mapLine

T mapLine(java.lang.String line)
          throws java.lang.Exception
Implementations must implement this method to map the provided line to the parameter type T.

Parameters:
line - to be mapped
Returns:
mapped object of type T
Throws:
java.lang.Exception - if error occured while parsing.

Spring for Apache Hadoop