public class ListMemorySegmentPool extends Object implements MemorySegmentPool
| Constructor and Description |
|---|
ListMemorySegmentPool(List<org.apache.flink.core.memory.MemorySegment> memorySegments) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
int |
freePages() |
org.apache.flink.core.memory.MemorySegment |
nextSegment() |
int |
pageSize()
Get the page size of each page this pool holds.
|
void |
returnAll(List<org.apache.flink.core.memory.MemorySegment> memory)
Return all pages back into this pool.
|
public ListMemorySegmentPool(List<org.apache.flink.core.memory.MemorySegment> memorySegments)
public org.apache.flink.core.memory.MemorySegment nextSegment()
nextSegment in interface org.apache.flink.core.memory.MemorySegmentSourcepublic int pageSize()
MemorySegmentPoolpageSize in interface MemorySegmentPoolpublic void returnAll(List<org.apache.flink.core.memory.MemorySegment> memory)
MemorySegmentPoolreturnAll in interface MemorySegmentPoolmemory - the pages which want to be returned.public int freePages()
freePages in interface MemorySegmentPoolpublic void clear()
Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.