Class MmapMemoryManager
- java.lang.Object
-
- org.apache.pinot.segment.local.io.readerwriter.RealtimeIndexOffHeapMemoryManager
-
- org.apache.pinot.segment.local.io.writer.impl.MmapMemoryManager
-
- All Implemented Interfaces:
Closeable,AutoCloseable,PinotDataBufferMemoryManager
public class MmapMemoryManager extends RealtimeIndexOffHeapMemoryManager
-
-
Constructor Summary
Constructors Constructor Description MmapMemoryManager(String dirPathName, String segmentName)MmapMemoryManager(String dirPathName, String segmentName, ServerMetrics serverMetrics)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PinotDataBufferallocateInternal(long size, String columnName)protected voiddoClose()Method to be implemented by inheriting concrete classesstatic longgetDefaultFileLength()-
Methods inherited from class org.apache.pinot.segment.local.io.readerwriter.RealtimeIndexOffHeapMemoryManager
allocate, close, getTotalAllocatedBytes
-
-
-
-
Constructor Detail
-
MmapMemoryManager
public MmapMemoryManager(String dirPathName, String segmentName, ServerMetrics serverMetrics)
- Parameters:
dirPathName- directory under which all mmap files are created.segmentName- Name of the segment for which this memory manager allocates memoryserverMetrics- Server metrics- See Also:
RealtimeIndexOffHeapMemoryManager
-
-
Method Detail
-
getDefaultFileLength
public static long getDefaultFileLength()
-
allocateInternal
protected PinotDataBuffer allocateInternal(long size, String columnName)
- Specified by:
allocateInternalin classRealtimeIndexOffHeapMemoryManager- Parameters:
size- size of memory to be mmapedcolumnName- Name of the column for which memory is being allocated- Returns:
- buffer allocated in mmap mode
-
doClose
protected void doClose() throws IOExceptionDescription copied from class:RealtimeIndexOffHeapMemoryManagerMethod to be implemented by inheriting concrete classes- Specified by:
doClosein classRealtimeIndexOffHeapMemoryManager- Throws:
IOException
-
-