Package org.apache.flink.runtime.memory
Class ListMemorySegmentSource
- java.lang.Object
-
- org.apache.flink.runtime.memory.ListMemorySegmentSource
-
- All Implemented Interfaces:
MemorySegmentSource
public class ListMemorySegmentSource extends Object implements MemorySegmentSource
Simple memory segment source that draws segments from a list.
-
-
Constructor Summary
Constructors Constructor Description ListMemorySegmentSource(List<MemorySegment> memorySegments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MemorySegment
nextSegment()
Gets the next memory segment.
-
-
-
Constructor Detail
-
ListMemorySegmentSource
public ListMemorySegmentSource(List<MemorySegment> memorySegments)
-
-
Method Detail
-
nextSegment
public MemorySegment nextSegment()
Description copied from interface:MemorySegmentSource
Gets the next memory segment. If no more segments are available, it returns null.- Specified by:
nextSegment
in interfaceMemorySegmentSource
- Returns:
- The next memory segment, or null, if none is available.
-
-