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

Method toMmapCacheKey

core/src/main/java/io/questdb/std/FdCache.java:241–247  ·  view source on GitHub ↗

Retrieves memory map cache key for given file descriptor.

(long fd)

Source from the content-addressed store, hash-verified

239 * Retrieves memory map cache key for given file descriptor.
240 */
241 public synchronized long toMmapCacheKey(long fd) {
242 var cacheRecord = openFdMapByFd.get(fd);
243 if (cacheRecord == null) {
244 return 0;
245 }
246 return cacheRecord.mmapCacheKey;
247 }
248
249 /**
250 * Extracts underlying OS file descriptor from cached file descriptor.

Callers 2

mmapMethod · 0.80
mremapMethod · 0.80

Calls 1

getMethod · 0.65

Tested by

no test coverage detected