Class BlockMgrFactory

java.lang.Object
org.apache.jena.tdb1.base.block.BlockMgrFactory

public class BlockMgrFactory extends Object
  • Field Details

    • AddTracker

      public static boolean AddTracker
  • Constructor Details

    • BlockMgrFactory

      public BlockMgrFactory()
  • Method Details

    • tracker

      public static BlockMgr tracker(BlockMgr blockMgr)
    • create

      public static BlockMgr create(FileSet fileSet, String ext, BlockParams params)
    • create

      public static BlockMgr create(FileSet fileSet, String ext, int blockSize, int readBlockCacheSize, int writeBlockCacheSize)
    • createMem

      public static BlockMgr createMem(String indexName, int blockSize)
      Create an in-memory block manager
    • createFile

      public static BlockMgr createFile(String filename, BlockParams params)
      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

      public static BlockMgr createMMapFile(String filename, int blockSize)
      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

      public static BlockMgr createStdFileNoCache(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.

      See Also:
    • 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.