Package org.apache.jena.dboe.base.block
Class BlockMgrFactory
- java.lang.Object
-
- org.apache.jena.dboe.base.block.BlockMgrFactory
-
public class BlockMgrFactory extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static booleanAddTracker
-
Constructor Summary
Constructors Constructor Description BlockMgrFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BlockMgraddCache(BlockMgr blockMgr, int readBlockCacheSize, int writeBlockCacheSize)Add 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 BlockMgrcreate(FileSet fileSet, java.lang.String ext, int blockSize, int readBlockCacheSize, int writeBlockCacheSize)static BlockMgrcreate(FileSet fileSet, java.lang.String ext, BlockParams params)static BlockMgrcreate(FileSet fileSet, java.lang.String ext, FileMode fileMode, int blockSize, int readBlockCacheSize, int writeBlockCacheSize)static BlockMgrcreateFile(java.lang.String filename, BlockParams params)Create a BlockMgr backed by a real filestatic BlockMgrcreateFile(java.lang.String filename, FileMode fileMode, int blockSize, int readBlockCacheSize, int writeBlockCacheSize)Create a BlockMgr backed by a real filestatic BlockMgrcreateMem(java.lang.String indexName, int blockSize)Create an in-memory block managerstatic BlockMgrcreateMMapFile(java.lang.String filename, int blockSize)Create a NIO Block Managerstatic BlockMgrcreateStdFile(java.lang.String filename, int blockSize, int readBlockCacheSize, int writeBlockCacheSize)Create a Block Manager using direct access (and a cache)static BlockMgrcreateStdFileNoCache(java.lang.String filename, int blockSize)Create a Block Manager using direct access, no caching, no nothing.static BlockMgrtracker(BlockMgr blockMgr)
-
-
-
Method Detail
-
create
public static BlockMgr create(FileSet fileSet, java.lang.String ext, BlockParams params)
-
create
public static BlockMgr create(FileSet fileSet, java.lang.String ext, int blockSize, int readBlockCacheSize, int writeBlockCacheSize)
-
create
public static BlockMgr create(FileSet fileSet, java.lang.String ext, FileMode fileMode, int blockSize, int readBlockCacheSize, int writeBlockCacheSize)
-
createMem
public static BlockMgr createMem(java.lang.String indexName, int blockSize)
Create an in-memory block manager
-
createFile
public static BlockMgr createFile(java.lang.String filename, BlockParams params)
Create a BlockMgr backed by a real file
-
createFile
public static BlockMgr createFile(java.lang.String filename, FileMode fileMode, int blockSize, int readBlockCacheSize, int writeBlockCacheSize)
Create a BlockMgr backed by a real file
-
createMMapFile
public static BlockMgr createMMapFile(java.lang.String filename, int blockSize)
Create a NIO Block Manager
-
createStdFile
public static BlockMgr createStdFile(java.lang.String filename, int blockSize, int readBlockCacheSize, int writeBlockCacheSize)
Create a Block Manager using direct access (and a cache)
-
createStdFileNoCache
public static BlockMgr createStdFileNoCache(java.lang.String filename, int blockSize)
Create a Block Manager using direct access, no caching, no nothing.
-
addCache
public static BlockMgr addCache(BlockMgr blockMgr, int readBlockCacheSize, int writeBlockCacheSize)
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.
-
-