java.lang.Object
org.apache.jena.tdb1.base.block.BlockMgrBase
org.apache.jena.tdb1.base.block.BlockMgrFileAccess
- All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable,org.apache.jena.atlas.lib.Sync,BlockMgr
Block manager that maps from the FileAccess layer to a BlockMgr.
Add free block management (but we should layer with BlockMgrFreeChain)
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the block managervoidAnnounce a block is no longer in use (i.e it's now freed)getRead(long id) Fetch a block, use for read onlygetReadIterator(long id) Fetch a block, use for read only in an iteratorgetWrite(long id) Fetch a block, use for write and read - only inside "update"booleanisClosed()Is this block manager still usable? Closed block managers can not perform any operations except this one.booleanisEmpty()Answer whether there are any blocks in the collection being managedvoidReplace the contents of a block slot with new contents.Promote to writeable : it's OK to promote an already writeable blockvoidRelease a block, unmodified.voidsync()Sync the block managervoidSync the block manager : system operation to ensure sync() is passed downtoString()booleanvalid(int id) Is this a valid block id? (may be a free block)voidWrite a block back - it still needs releasing.Methods inherited from class org.apache.jena.tdb1.base.block.BlockMgrBase
allocate, beginIterator, beginRead, beginUpdate, endIterator, endRead, endUpdate, getLabel
-
Method Details
-
promote
Description copied from interface:BlockMgrPromote to writeable : it's OK to promote an already writeable block -
getReadIterator
Description copied from interface:BlockMgrFetch a block, use for read only in an iterator -
getRead
Description copied from interface:BlockMgrFetch a block, use for read only -
getWrite
Description copied from interface:BlockMgrFetch a block, use for write and read - only inside "update" -
release
Description copied from interface:BlockMgrRelease a block, unmodified. -
write
Description copied from interface:BlockMgrWrite a block back - it still needs releasing. -
overwrite
Description copied from interface:BlockMgrReplace the contents of a block slot with new contents. Block does not need releasing. The write() operation may not do real work if the block is mapped - this operation really does replace the contents with the new contents. -
free
Description copied from interface:BlockMgrAnnounce a block is no longer in use (i.e it's now freed) -
valid
public boolean valid(int id) Description copied from interface:BlockMgrIs this a valid block id? (may be a free block) -
sync
public void sync()Description copied from interface:BlockMgrSync the block manager -
syncForce
public void syncForce()Description copied from interface:BlockMgrSync the block manager : system operation to ensure sync() is passed down -
isClosed
public boolean isClosed()Description copied from interface:BlockMgrIs this block manager still usable? Closed block managers can not perform any operations except this one. -
close
public void close()Description copied from interface:BlockMgrClose the block manager -
isEmpty
public boolean isEmpty()Description copied from interface:BlockMgrAnswer whether there are any blocks in the collection being managed -
toString
-