java.lang.Object
org.apache.jena.tdb1.base.block.Block

public final class Block extends Object
  • Constructor Details

  • Method Details

    • convert

      public <T extends Page> T convert(BlockConverter<T> converter)
    • getId

      public final Long getId()
    • getByteBuffer

      public final ByteBuffer getByteBuffer()
    • isReadOnly

      public boolean isReadOnly()
    • setReadOnly

      public void setReadOnly(boolean readonly)
    • isModified

      public boolean isModified()
    • setModified

      public void setModified(boolean modified)
    • getUnderlyingByteBuffer

      public ByteBuffer getUnderlyingByteBuffer()
    • setUnderlyingByteBuffer

      public void setUnderlyingByteBuffer(ByteBuffer underlyingByteBuffer)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • replicate

      public Block replicate()
      Deep copy, including ByteBuffer contents into a HeapByteBuffer.
    • replicate

      public Block replicate(ByteBuffer dstBuffer)
      Deep copy, including ByteBuffer contents, using the supplied ByteBuffer to hold the contents and to be used when constructing the new Block. The capacity of the supplied ByteBuffer must be equal to or greater than this block's capacity.
    • replicate

      public static void replicate(Block srcBlock, Block dstBlock)