Class DirectMemoryManager
- java.lang.Object
-
- org.apache.pinot.segment.local.io.readerwriter.RealtimeIndexOffHeapMemoryManager
-
- org.apache.pinot.segment.local.io.writer.impl.DirectMemoryManager
-
- All Implemented Interfaces:
Closeable,AutoCloseable,PinotDataBufferMemoryManager
public class DirectMemoryManager extends RealtimeIndexOffHeapMemoryManager
-
-
Constructor Summary
Constructors Constructor Description DirectMemoryManager(String segmentName)DirectMemoryManager(String segmentName, ServerMetrics serverMetrics)
-
Method Summary
Modifier and Type Method Description protected PinotDataBufferallocateInternal(long size, String allocationContext)protected voiddoClose()Method to be implemented by inheriting concrete classes-
Methods inherited from class org.apache.pinot.segment.local.io.readerwriter.RealtimeIndexOffHeapMemoryManager
allocate, close, getTotalAllocatedBytes
-
-
-
-
Constructor Detail
-
DirectMemoryManager
public DirectMemoryManager(String segmentName, ServerMetrics serverMetrics)
- See Also:
RealtimeIndexOffHeapMemoryManager
-
DirectMemoryManager
public DirectMemoryManager(String segmentName)
-
-
Method Detail
-
allocateInternal
protected PinotDataBuffer allocateInternal(long size, String allocationContext)
- Specified by:
allocateInternalin classRealtimeIndexOffHeapMemoryManager- Parameters:
size- size of memoryallocationContext- String describing context of allocation (typically segment:column name).- Returns:
- PinotDataBuffer via direct allocation
- See Also:
RealtimeIndexOffHeapMemoryManager.allocate(long, String)
-
doClose
protected void doClose()
Description copied from class:RealtimeIndexOffHeapMemoryManagerMethod to be implemented by inheriting concrete classes- Specified by:
doClosein classRealtimeIndexOffHeapMemoryManager
-
-