MCPcopy Create free account
hub / github.com/questdb/questdb / openRO

Method openRO

core/src/main/java/io/questdb/std/Files.java:447–453  ·  view source on GitHub ↗
(LPSZ lpsz)

Source from the content-addressed store, hash-verified

445 public native static int openCleanRW(long lpszName, long size);
446
447 public static long openRO(LPSZ lpsz) {
448 if (FS_CACHE_ENABLED) {
449 return fdCache.openROCached(lpsz);
450 } else {
451 return fdCache.createUniqueFdNonCached(openRO(lpsz.ptr()));
452 }
453 }
454
455 public static long openRONoCache(LPSZ path) {
456 return fdCache.createUniqueFdNonCached(openRO(path.ptr()));

Calls 3

openROCachedMethod · 0.80
ptrMethod · 0.65

Tested by 15

testMmapInvalidMethod · 0.76
testMremapInvalidMethod · 0.76
testSendFileOver2GBMethod · 0.76
testUnlinkMethod · 0.76
testAutoDeleteMethod · 0.76
openROMethod · 0.76