Class StartsWithStringRecordFilter

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

    public class StartsWithStringRecordFilter
    extends java.lang.Object
    implements RecordFilter<java.lang.String>
    A RecordFilter that filters string records starting with one of the given prefixes.
    Author:
    Mahmoud Ben Hassine ([email protected])
    • Constructor Detail

      • StartsWithStringRecordFilter

        public StartsWithStringRecordFilter​(java.lang.String... prefixes)
        Parameters:
        prefixes - prefixes 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