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

    Modifier and Type
    Method
    Description
    int
     
    int
    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.

    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

      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.