Class BlockAccessByteArray

java.lang.Object
org.apache.jena.dboe.base.file.BlockAccessByteArray
All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable, org.apache.jena.atlas.lib.Sync, BlockAccess

public class BlockAccessByteArray extends Object implements BlockAccess
FileAccess interface backed by a byte array.
  • Constructor Details

    • BlockAccessByteArray

      public BlockAccessByteArray(String label)
  • Method Details

    • getLabel

      public String getLabel()
      Specified by:
      getLabel in interface BlockAccess
    • allocate

      public Block allocate(int size)
      Specified by:
      allocate in interface BlockAccess
    • allocBoundary

      public long allocBoundary()
      Specified by:
      allocBoundary in interface BlockAccess
    • resetAllocBoundary

      public void resetAllocBoundary(long boundary)
      Description copied from interface: BlockAccess
      Reset the allocation space (i.e. truncate). The boundary should be a number obtained from a previous call of allocLimit. It can not be greater than the current allocation boundary.
      Specified by:
      resetAllocBoundary in interface BlockAccess
    • read

      public Block read(long id)
      Specified by:
      read in interface BlockAccess
    • write

      public void write(Block block)
      Specified by:
      write in interface BlockAccess
    • overwrite

      public void overwrite(Block block)
      Specified by:
      overwrite in interface BlockAccess
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface BlockAccess
    • valid

      public boolean valid(long id)
      Specified by:
      valid in interface BlockAccess
    • sync

      public void sync()
      Specified by:
      sync in interface org.apache.jena.atlas.lib.Sync
    • close

      public void close()
      Specified by:
      close in interface org.apache.jena.atlas.lib.Closeable