Interface MemoryBlockIterator

All Known Implementing Classes:
BlockResettableMutableObjectIterator, NonReusingBlockResettableIterator, ReusingBlockResettableIterator

public interface MemoryBlockIterator
The memory block iterator is an iterator that always buffers a block of elements in memory.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Move the iterator to the next memory block.
  • Method Details

    • nextBlock

      boolean nextBlock() throws IOException
      Move the iterator to the next memory block. The next memory block starts at the first element that was not in the block before. A special case is when no record was in the block before, which happens when this function is invoked two times directly in a sequence, without calling hasNext() or next in between. Then the block moves one element.
      Returns:
      True if a new memory block was loaded, false if there were no further records and hence no further memory block.
      Throws:
      IOException - Thrown, when advancing to the next block failed.