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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
nextBlock()
Move the iterator to the next memory block.
-
-
-
Method Detail
-
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.
-
-