Package org.apache.flink.runtime.util
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 TypeMethodDescriptionbooleanMove the iterator to the next memory block.
-
Method Details
-
nextBlock
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.
-