Class EndsWithStringRecordFilter

  • All Implemented Interfaces:
    RecordFilter<java.lang.String>, RecordProcessor<java.lang.String,​java.lang.String>

    public class EndsWithStringRecordFilter
    extends java.lang.Object
    implements RecordFilter<java.lang.String>
    Filter string records ending with one of the given suffixes.
    Author:
    Mahmoud Ben Hassine ([email protected])
    • Constructor Detail

      • EndsWithStringRecordFilter

        public EndsWithStringRecordFilter​(java.lang.String... suffixes)
        Parameters:
        suffixes - suffixes that cause the record to be filtered.
    • Method Detail

      • processRecord

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