Package org.apache.jena.dboe.base.block
Class BlockMgrReadonly
- java.lang.Object
-
- org.apache.jena.dboe.base.block.BlockMgrWrapper
-
- org.apache.jena.dboe.base.block.BlockMgrReadonly
-
- All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable,org.apache.jena.atlas.lib.Sync,BlockMgr
public class BlockMgrReadonly extends BlockMgrWrapper
-
-
Constructor Summary
Constructors Constructor Description BlockMgrReadonly(BlockMgr blockMgr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Blockallocate(int blockSize)Allocate an uninitialized block - writable - call only inside a update sequence.voidbeginUpdate()Start of updatevoidendUpdate()Completion of updatevoidfree(Block block)Announce a block is no longer in use (i.e it's now freed)BlockgetWrite(long id)Fetch a block, use for write and read - only inside "update"voidoverwrite(Block block)Replace the contents of a block slot with new contents.Blockpromote(Block block)Promote to writable : it's OK to promote an already writable blockjava.lang.StringtoString()voidwrite(Block block)Write a block back - it still needs releasing.-
Methods inherited from class org.apache.jena.dboe.base.block.BlockMgrWrapper
allocLimit, beginRead, close, endRead, getLabel, getRead, getWrapped, isClosed, isEmpty, release, resetAlloc, sync, syncForce, valid
-
-
-
-
Constructor Detail
-
BlockMgrReadonly
public BlockMgrReadonly(BlockMgr blockMgr)
-
-
Method Detail
-
beginUpdate
public void beginUpdate()
Description copied from interface:BlockMgrStart of update- Specified by:
beginUpdatein interfaceBlockMgr- Overrides:
beginUpdatein classBlockMgrWrapper
-
endUpdate
public void endUpdate()
Description copied from interface:BlockMgrCompletion of update- Specified by:
endUpdatein interfaceBlockMgr- Overrides:
endUpdatein classBlockMgrWrapper
-
allocate
public Block allocate(int blockSize)
Description copied from interface:BlockMgrAllocate an uninitialized block - writable - call only inside a update sequence. If blockSize is -1, means "default/fixed size" for this BlockMgr- Specified by:
allocatein interfaceBlockMgr- Overrides:
allocatein classBlockMgrWrapper
-
getWrite
public Block getWrite(long id)
Description copied from interface:BlockMgrFetch a block, use for write and read - only inside "update"- Specified by:
getWritein interfaceBlockMgr- Overrides:
getWritein classBlockMgrWrapper
-
promote
public Block promote(Block block)
Description copied from interface:BlockMgrPromote to writable : it's OK to promote an already writable block- Specified by:
promotein interfaceBlockMgr- Overrides:
promotein classBlockMgrWrapper
-
write
public void write(Block block)
Description copied from interface:BlockMgrWrite a block back - it still needs releasing.- Specified by:
writein interfaceBlockMgr- Overrides:
writein classBlockMgrWrapper
-
overwrite
public void overwrite(Block block)
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.- Specified by:
overwritein interfaceBlockMgr- Overrides:
overwritein classBlockMgrWrapper
-
free
public void free(Block block)
Description copied from interface:BlockMgrAnnounce a block is no longer in use (i.e it's now freed)- Specified by:
freein interfaceBlockMgr- Overrides:
freein classBlockMgrWrapper
-
toString
public java.lang.String toString()
- Overrides:
toStringin classBlockMgrWrapper
-
-