Interface StorageDataFileItemIterator.ItemProcessor

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean accept​(long address, long remaninigBufferedData)
      Processes the entity at the given address for the passed availableEntityLength.
    • Method Detail

      • accept

        boolean accept​(long address,
                       long remaninigBufferedData)
        Processes the entity at the given address for the passed availableEntityLength. If the available length is not sufficient (i.e. the processor requires the full entity but the available data is incomplete), the processor aborts and returns false, signaling the iterator to reload the entity in the next batch in full. Otherwise, the processor processes the entity (e.g. only register header values) and returns true.
        Parameters:
        address - the address at which the entity data is located (starting with the entity header).
        remaninigBufferedData - the remaining entity data in the buffer, potentially less then the actual entity length.
        Returns:
        true if the entity has been processed, false (impliying recall) otherwise.