Interface MemorySegmentPool
-
- All Superinterfaces:
org.apache.flink.core.memory.MemorySegmentSource
- All Known Implementing Classes:
BaseHybridHashTable,BinaryHashTable,BytesHashMapSpillMemorySegmentPool,LazyMemorySegmentPool,ListMemorySegmentPool,LongHybridHashTable
public interface MemorySegmentPool extends org.apache.flink.core.memory.MemorySegmentSourceMemorySegment pool to hold pages in memory.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intfreePages()intpageSize()Get the page size of each page this pool holds.voidreturnAll(List<org.apache.flink.core.memory.MemorySegment> memory)Return all pages back into this pool.
-
-
-
Method Detail
-
pageSize
int pageSize()
Get the page size of each page this pool holds.- Returns:
- the page size
-
returnAll
void returnAll(List<org.apache.flink.core.memory.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.
-
-