Package org.jeasy.batch.core.filter
Interface RecordFilter<R>
-
- Type Parameters:
R
- the type of records the filter can handle
- All Superinterfaces:
RecordProcessor<R,R>
- All Known Implementing Classes:
EmptyStringRecordFilter
,EndsWithStringRecordFilter
,FileExtensionFilter
,FilteredRecordsCollector
,GrepFilter
,HeaderRecordFilter
,StartsWithStringRecordFilter
public interface RecordFilter<R> extends RecordProcessor<R,R>
Interface for record filter.- Author:
- Mahmoud Ben Hassine ([email protected])
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Record<R>
processRecord(Record<R> record)
Filter a record.
-
-
-
Method Detail
-
processRecord
Record<R> processRecord(Record<R> record)
Filter a record.- Specified by:
processRecord
in interfaceRecordProcessor<R,R>
- 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
-
-