use of org.apache.jena.tdb.base.block.Block in project jena by apache.
the class PageBlockMgr method release.
public void release(Page page) {
Block block = page.getBackingBlock();
blockMgr.release(block);
}
use of org.apache.jena.tdb.base.block.Block in project jena by apache.
the class PageBlockMgr method getWrite.
public T getWrite(int id) {
Block block = blockMgr.getWrite(id);
block.setModified(true);
T page = pageFactory.fromBlock(block);
return page;
}
use of org.apache.jena.tdb.base.block.Block in project jena by apache.
the class PageBlockMgr method create.
// /** Allocate an uninitialized slot. Fill with a .put later */
// public int allocateId() { return blockMgr.allocateId() ; }
/** Allocate a new thing */
public T create(BlockType bType) {
Block block = blockMgr.allocate(-1);
block.setModified(true);
T page = pageFactory.createFromBlock(block, bType);
return page;
}
use of org.apache.jena.tdb.base.block.Block in project jena by apache.
the class PageBlockMgr method getRead.
public T getRead(int id) {
Block block = blockMgr.getRead(id);
T page = pageFactory.fromBlock(block);
return page;
}
use of org.apache.jena.tdb.base.block.Block in project jena by apache.
the class PageBlockMgr method write.
public void write(T page) {
// Catch updates to non-transactioned datasetgraph. Check in BlockMgrJournal instead.
// if ( ! page.getBackingBlock().isModified() )
// warn("Page for block "+page.getBackingBlock().getId()+" not modified") ;
Block blk = pageFactory.toBlock(page);
blockMgr.write(blk);
}
Aggregations