Interface StoreScanner.RecordConsumer<Reference>

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      boolean offer​(Reference reference)
      Handles the given record and tells the caller, if it can accept more records.
      default void reset()
      Resets the internal state of the consumer so that a new batch of records can be consumed.
    • Method Detail

      • offer

        boolean offer​(Reference reference)
        Handles the given record and tells the caller, if it can accept more records. Can also ignore the record if it is not of interest.
        Parameters:
        reference - record
        Returns:
        true, iff the consumer can consume more records
      • reset

        default void reset()
        Resets the internal state of the consumer so that a new batch of records can be consumed.