Class BlockMgrReadonly

  • All Implemented Interfaces:
    org.apache.jena.atlas.lib.Closeable, org.apache.jena.atlas.lib.Sync, BlockMgr

    public class BlockMgrReadonly
    extends BlockMgrWrapper
    • Constructor Detail

      • BlockMgrReadonly

        public BlockMgrReadonly​(BlockMgr blockMgr)
    • Method Detail

      • allocate

        public Block allocate​(int blockSize)
        Description copied from interface: BlockMgr
        Allocate an uninitialized block - writable - call only inside a update sequence. If blockSize is -1, means "default/fixed size" for this BlockMgr
        Specified by:
        allocate in interface BlockMgr
        Overrides:
        allocate in class BlockMgrWrapper
      • overwrite

        public void overwrite​(Block block)
        Description copied from interface: BlockMgr
        Replace 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:
        overwrite in interface BlockMgr
        Overrides:
        overwrite in class BlockMgrWrapper
      • free

        public void free​(Block block)
        Description copied from interface: BlockMgr
        Announce a block is no longer in use (i.e it's now freed)
        Specified by:
        free in interface BlockMgr
        Overrides:
        free in class BlockMgrWrapper