Class BlockAccessBase

java.lang.Object
org.apache.jena.dboe.base.file.BlockAccessBase
All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable, org.apache.jena.atlas.lib.Sync, BlockAccess
Direct Known Subclasses:
BlockAccessDirect, BlockAccessMapped

public abstract class BlockAccessBase extends Object implements BlockAccess
Support for a disk file backed FileAccess
  • Constructor Details

    • BlockAccessBase

      public BlockAccessBase(String filename, int blockSize)
  • Method Details

    • isEmpty

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

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

      public final 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
    • valid

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

      public final boolean isClosed()
    • close

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

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