Interface MemorySegmentPool
-
- All Superinterfaces:
MemorySegmentSource
- All Known Implementing Classes:
BaseHybridHashTable
,BinaryHashTable
,BytesHashMapSpillMemorySegmentPool
,LazyMemorySegmentPool
,ListMemorySegmentPool
,LongHybridHashTable
public interface MemorySegmentPool extends MemorySegmentSource
MemorySegment pool to hold pages in memory.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
freePages()
int
pageSize()
Get the page size of each page this pool holds.void
returnAll(List<MemorySegment> memory)
Return all pages back into this pool.-
Methods inherited from interface org.apache.flink.core.memory.MemorySegmentSource
nextSegment
-
-
-
-
Method Detail
-
pageSize
int pageSize()
Get the page size of each page this pool holds.- Returns:
- the page size
-
returnAll
void returnAll(List<MemorySegment> memory)
Return all pages back into this pool.- Parameters:
memory
- the pages which want to be returned.
-
freePages
int freePages()
- Returns:
- Free page number.
-
-