Package org.jeasy.batch.core.filter
Class HeaderRecordFilter<P>
- java.lang.Object
-
- org.jeasy.batch.core.filter.HeaderRecordFilter<P>
-
- All Implemented Interfaces:
RecordFilter<P>
,RecordProcessor<P,P>
public class HeaderRecordFilter<P> extends java.lang.Object implements RecordFilter<P>
Filters the header record (first record in the data source).- Author:
- Mahmoud Ben Hassine ([email protected])
-
-
Constructor Summary
Constructors Constructor Description HeaderRecordFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Record<P>
processRecord(Record<P> record)
Filter a record.
-
-
-
Method Detail
-
processRecord
public Record<P> processRecord(Record<P> record)
Description copied from interface:RecordFilter
Filter a record.- Specified by:
processRecord
in interfaceRecordFilter<P>
- Specified by:
processRecord
in interfaceRecordProcessor<P,P>
- Parameters:
record
- the record to filter.- Returns:
- the input record if it should continue in the pipeline or
null
if the record should be filtered
-
-