public class BytesHashMapSpillMemorySegmentPool extends Object implements MemorySegmentPool
BytesHashMap
to fall back to sort agg. nextSegment()
not
remove segment from segments, just get from segments.Constructor and Description |
---|
BytesHashMapSpillMemorySegmentPool(List<MemorySegment> memorySegments) |
Modifier and Type | Method and Description |
---|---|
int |
freePages() |
MemorySegment |
nextSegment()
Gets the next memory segment.
|
int |
pageSize()
Get the page size of each page this pool holds.
|
void |
returnAll(List<MemorySegment> memory)
Return all pages back into this pool.
|
public BytesHashMapSpillMemorySegmentPool(List<MemorySegment> memorySegments)
public MemorySegment nextSegment()
MemorySegmentSource
nextSegment
in interface MemorySegmentSource
public void returnAll(List<MemorySegment> memory)
MemorySegmentPool
returnAll
in interface MemorySegmentPool
memory
- the pages which want to be returned.public int freePages()
freePages
in interface MemorySegmentPool
public int pageSize()
MemorySegmentPool
pageSize
in interface MemorySegmentPool
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.