Class RecordFilterChainImpl

java.lang.Object
org.nuxeo.lib.stream.computation.internals.RecordFilterChainImpl
All Implemented Interfaces:
RecordFilter, RecordFilterChain

public class RecordFilterChainImpl extends Object implements RecordFilterChain
Chains multiple record filters.
Since:
11.1
  • Field Details

  • Constructor Details

    • RecordFilterChainImpl

      public RecordFilterChainImpl()
  • Method Details

    • addFilter

      public RecordFilterChain addFilter(RecordFilter filter)
      Specified by:
      addFilter in interface RecordFilterChain
    • beforeAppend

      public Record beforeAppend(Record record)
      Description copied from interface: RecordFilter
      Called before appending a record to a stream. This hook enables to change the record or to skip it when returning null.
      Specified by:
      beforeAppend in interface RecordFilter
      Parameters:
      record - the record that will be appended to a stream
    • afterAppend

      public void afterAppend(Record record, LogOffset offset)
      Description copied from interface: RecordFilter
      Called after a record is appended to a stream.
      Specified by:
      afterAppend in interface RecordFilter
      Parameters:
      record - the written record
      offset - the record's offset
    • afterRead

      public Record afterRead(Record record, LogOffset offset)
      Description copied from interface: RecordFilter
      Called after reading a record. This hook enables to change the record or to skip it when returning null.
      Specified by:
      afterRead in interface RecordFilter
      Parameters:
      record - the record
      offset - the offset of the record