Class 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 Detail

      • HeaderRecordFilter

        public HeaderRecordFilter()
    • 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