Package org.apache.jena.dboe.base.block
Class BlockMgrFactory
java.lang.Object
org.apache.jena.dboe.base.block.BlockMgrFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockMgrAdd a caching layer to a BlockMgr.static BlockMgraddCache(BlockMgr blockMgr, FileSet fileSet, FileMode fileMode, int readBlockCacheSize, int writeBlockCacheSize) Add a caching layer to a BlockMgr if appropriate.static BlockMgrstatic BlockMgrcreate(FileSet fileSet, String ext, BlockParams params) static BlockMgrcreate(FileSet fileSet, String ext, FileMode fileMode, int blockSize, int readBlockCacheSize, int writeBlockCacheSize) static BlockMgrcreateFile(String filename, BlockParams params) Create a BlockMgr backed by a real filestatic BlockMgrcreateFile(String filename, FileMode fileMode, int blockSize, int readBlockCacheSize, int writeBlockCacheSize) Create a BlockMgr backed by a real filestatic BlockMgrCreate an in-memory block managerstatic BlockMgrcreateMMapFile(String filename, int blockSize) Create a NIO Block Managerstatic BlockMgrcreateStdFile(String filename, int blockSize, int readBlockCacheSize, int writeBlockCacheSize) Create a Block Manager using direct access (and a cache)static BlockMgrcreateStdFileNoCache(String filename, int blockSize) Create a Block Manager using direct access, no caching, no nothing.static BlockMgr
-
Field Details
-
AddTracker
public static boolean AddTracker
-
-
Constructor Details
-
BlockMgrFactory
public BlockMgrFactory()
-
-
Method Details
-
tracker
-
create
-
create
-
create
-
createMem
Create an in-memory block manager -
createFile
Create a BlockMgr backed by a real file -
createFile
public static BlockMgr createFile(String filename, FileMode fileMode, int blockSize, int readBlockCacheSize, int writeBlockCacheSize) Create a BlockMgr backed by a real file -
createMMapFile
Create a NIO Block Manager -
createStdFile
public static BlockMgr createStdFile(String filename, int blockSize, int readBlockCacheSize, int writeBlockCacheSize) Create a Block Manager using direct access (and a cache) -
createStdFileNoCache
Create a Block Manager using direct access, no caching, no nothing. -
addCache
Add a caching layer to a BlockMgr.This does not make sense for memory BlockMgr or for memory mapper files. This function always add the cache.
-
addCache
public static BlockMgr addCache(BlockMgr blockMgr, FileSet fileSet, FileMode fileMode, int readBlockCacheSize, int writeBlockCacheSize) Add a caching layer to a BlockMgr if appropriate. This does not make sense for memory BlockMgr or for memory mapper files. These are skipped.
-