Class RecordCollector<P>

  • Type Parameters:
    P - The type of the record's payload.
    All Implemented Interfaces:
    RecordProcessor<P,​P>

    public class RecordCollector<P>
    extends java.lang.Object
    implements RecordProcessor<P,​P>
    Convenient processor that collects records.
    Author:
    Mahmoud Ben Hassine ([email protected])
    • Constructor Detail

      • RecordCollector

        public RecordCollector()
    • Method Detail

      • processRecord

        public Record<P> processRecord​(Record<P> record)
        Description copied from interface: RecordProcessor
        Process a record.
        Specified by:
        processRecord in interface RecordProcessor<P,​P>
        Parameters:
        record - to process.
        Returns:
        the processed record, may be of a different type than the input record, or null to skip next processors
      • getRecords

        public java.util.List<Record<P>> getRecords()