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.MemorySegmentSource
MemorySegment pool to hold pages in memory.
-
Method Summary
Methods inherited from interface org.apache.flink.core.memory.MemorySegmentSource
nextSegment
-
Method Details
-
pageSize
int pageSize()Get the page size of each page this pool holds.- Returns:
- the page size
-
returnAll
Return all pages back into this pool.- Parameters:
memory- the pages which want to be returned.
-
freePages
int freePages()- Returns:
- Free page number.
-