Search in sources :

Example 1 with BlockAccessDirect

use of org.apache.jena.tdb.base.file.BlockAccessDirect in project jena by apache.

the class TestBlockMgrDirect method make.

@Override
protected BlockMgr make() {
    // Make directly - no wrapper, no cache, no free block mgt.
    FileOps.delete(filename);
    BlockAccess file = new BlockAccessDirect(filename, BlkSize);
    BlockMgr mgr = new BlockMgrFileAccess(file, BlkSize);
    if (BlockMgrFactory.AddTracker)
        mgr = BlockMgrFactory.tracker(mgr);
    return mgr;
}
Also used : BlockMgr(org.apache.jena.tdb.base.block.BlockMgr) BlockAccessDirect(org.apache.jena.tdb.base.file.BlockAccessDirect) BlockAccess(org.apache.jena.tdb.base.file.BlockAccess) BlockMgrFileAccess(org.apache.jena.tdb.base.block.BlockMgrFileAccess)

Aggregations

BlockMgr (org.apache.jena.tdb.base.block.BlockMgr)1 BlockMgrFileAccess (org.apache.jena.tdb.base.block.BlockMgrFileAccess)1 BlockAccess (org.apache.jena.tdb.base.file.BlockAccess)1 BlockAccessDirect (org.apache.jena.tdb.base.file.BlockAccessDirect)1