Interface MemorySegmentPool

    • 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<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 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.