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 (mahmoud.benhassine@icloud.com)
-
-
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:RecordFilterFilter a record.- Specified by:
processRecordin interfaceRecordFilter<P>- Specified by:
processRecordin interfaceRecordProcessor<P,P>- Parameters:
record- the record to filter.- Returns:
- the input record if it should continue in the pipeline or
nullif the record should be filtered
-
-