MCPcopy Index your code
hub / github.com/questdb/questdb / mmap

Method mmap

core/src/main/java/io/questdb/std/Files.java:376–380  ·  view source on GitHub ↗
(long fd, long len, long offset, int flags, int memoryTag)

Source from the content-addressed store, hash-verified

374 }
375
376 public static long mmap(long fd, long len, long offset, int flags, int memoryTag) {
377 int osFd = fdCache.toOsFd(fd, (flags & MAP_RW) != 0);
378 long mmapCacheKey = fdCache.toMmapCacheKey(fd);
379 return mmapCache.cacheMmap(osFd, mmapCacheKey, len, offset, flags, memoryTag);
380 }
381
382 /**
383 * Memory map without using the MmapCache. Useful for streaming reads where

Callers 11

testMmapInvalidMethod · 0.95
testMremapInvalidMethod · 0.95
testOpenCleanRWLoopMethod · 0.95
testWriteOver2GBMethod · 0.95
mmapMethod · 0.95

Calls 3

toMmapCacheKeyMethod · 0.80
cacheMmapMethod · 0.80
toOsFdMethod · 0.45