Class FilteredRecordsCollector<P>

  • All Implemented Interfaces:
    RecordFilter<P>, RecordProcessor<P,​P>

    public class FilteredRecordsCollector<P>
    extends java.lang.Object
    implements RecordFilter<P>
    A RecordFilter that saves filtered records for later use. This filter delegates record filtering to another filter.
    Author:
    Somma Daniele, Mahmoud Ben Hassine
    • Constructor Detail

    • Method Detail

      • processRecord

        public Record<P> processRecord​(Record<P> record)
        Description copied from interface: RecordFilter
        Filter a record.
        Specified by:
        processRecord in interface RecordFilter<P>
        Specified by:
        processRecord in interface RecordProcessor<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
      • getFilteredRecords

        public java.util.List<Record<P>> getFilteredRecords()
        Get filtered records.
        Returns:
        filtered records