@Override public boolean highIO() { return defaultHighIO != null ? defaultHighIO : FileUtils.highIODevice( storeDir.toPath(), false ); }
@Override public boolean highIO() { return FileUtils.highIODevice( sourceDirectoryStructure.databaseDirectory().toPath(), super.highIO() ); } };
@Test public void onLinuxDevShmHasHighIO() { assumeTrue( SystemUtils.IS_OS_LINUX ); assertTrue( FileUtils.highIODevice( Paths.get( "/dev/shm" ), false ) ); }
@Test public void windowsNeverHaveHighIO() { // Future work: Maybe we should do like on Mac and assume true on Windows as well? assumeTrue( SystemUtils.IS_OS_WINDOWS ); assertFalse( FileUtils.highIODevice( Paths.get( "." ), false ) ); }
@Test public void allMacsHaveHighIO() { assumeTrue( SystemUtils.IS_OS_MAC ); assertTrue( FileUtils.highIODevice( Paths.get( "." ), false ) ); }
@Override public boolean highIO() { return defaultHighIO != null ? defaultHighIO : FileUtils.highIODevice( storeDir.toPath(), false ); }
@Override public boolean highIO() { return FileUtils.highIODevice( sourceDirectoryStructure.databaseDirectory().toPath(), super.highIO() ); } };
PageLoader getLoader( PagedFile file ) throws IOException { if ( FileUtils.highIODevice( file.file().toPath(), false ) ) { return new ParallelPageLoader( file, executor, pageCache ); } return new SingleCursorPageLoader( file ); } }