Class LazyMemorySegmentPool

    • Constructor Detail

      • LazyMemorySegmentPool

        public LazyMemorySegmentPool​(Object owner,
                                     org.apache.flink.runtime.memory.MemoryManager memoryManager,
                                     int maxPages)
    • Method Detail

      • pageSize

        public int pageSize()
        Description copied from interface: MemorySegmentPool
        Get the page size of each page this pool holds.
        Specified by:
        pageSize in interface MemorySegmentPool
        Returns:
        the page size
      • returnAll

        public void returnAll​(List<org.apache.flink.core.memory.MemorySegment> memory)
        Description copied from interface: MemorySegmentPool
        Return all pages back into this pool.
        Specified by:
        returnAll in interface MemorySegmentPool
        Parameters:
        memory - the pages which want to be returned.
      • returnPage

        public void returnPage​(org.apache.flink.core.memory.MemorySegment segment)
      • nextSegment

        public org.apache.flink.core.memory.MemorySegment nextSegment()
        Specified by:
        nextSegment in interface org.apache.flink.core.memory.MemorySegmentSource
      • allocateSegments

        public List<org.apache.flink.core.memory.MemorySegment> allocateSegments​(int required)
      • cleanCache

        public void cleanCache()