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