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 Details

    • BlockMgrReadonly

      public BlockMgrReadonly(BlockMgr blockMgr)
  • Method Details

    • beginUpdate

      public void beginUpdate()
      Description copied from interface: BlockMgr
      Start of update
      Specified by:
      beginUpdate in interface BlockMgr
      Overrides:
      beginUpdate in class BlockMgrWrapper
    • endUpdate

      public void endUpdate()
      Description copied from interface: BlockMgr
      Completion of update
      Specified by:
      endUpdate in interface BlockMgr
      Overrides:
      endUpdate in class BlockMgrWrapper
    • 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
    • getWrite

      public Block getWrite(long id)
      Description copied from interface: BlockMgr
      Fetch a block, use for write and read - only inside "update"
      Specified by:
      getWrite in interface BlockMgr
      Overrides:
      getWrite in class BlockMgrWrapper
    • promote

      public Block promote(Block block)
      Description copied from interface: BlockMgr
      Promote to writable : it's OK to promote an already writable block
      Specified by:
      promote in interface BlockMgr
      Overrides:
      promote in class BlockMgrWrapper
    • write

      public void write(Block block)
      Description copied from interface: BlockMgr
      Write a block back - it still needs releasing.
      Specified by:
      write in interface BlockMgr
      Overrides:
      write 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
    • toString

      public String toString()
      Overrides:
      toString in class BlockMgrWrapper