Search in sources :

Example 1 with BlockMgrFileAccess

use of org.apache.jena.tdb.base.block.BlockMgrFileAccess 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)

Example 2 with BlockMgrFileAccess

use of org.apache.jena.tdb.base.block.BlockMgrFileAccess in project jena by apache.

the class TestBlockMgrMapped method make.

@Override
protected BlockMgr make() {
    clearBlockMgr();
    BlockAccess file = new BlockAccessMapped(filename, BlkSize);
    return new BlockMgrFileAccess(file, BlkSize);
}
Also used : BlockAccessMapped(org.apache.jena.tdb.base.file.BlockAccessMapped) BlockAccess(org.apache.jena.tdb.base.file.BlockAccess) BlockMgrFileAccess(org.apache.jena.tdb.base.block.BlockMgrFileAccess)

Aggregations

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