org.springframework.yarn.batch.item
Class PassThroughLineDataMapper
java.lang.Object
org.springframework.yarn.batch.item.PassThroughLineDataMapper
- All Implemented Interfaces:
- LineDataMapper<String>
public class PassThroughLineDataMapper
- extends Object
- implements LineDataMapper<String>
Simple LineDataMapper implementation which just passes data as it is.
- Author:
- Janne Valkealahti
|
Method Summary |
String |
mapLine(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 |
PassThroughLineDataMapper
public PassThroughLineDataMapper()
mapLine
public String mapLine(String line)
throws 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<String>
- Parameters:
line - to be mapped
- Returns:
- mapped object of type T
- Throws:
Exception - if error occured while parsing.