Class 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 java.lang.Object
    implements BlockAccess
    Support for a disk file backed FileAccess
    • Constructor Detail

      • BlockAccessBase

        public BlockAccessBase​(java.lang.String filename,
                               int blockSize)
    • Method Detail

      • isEmpty

        public final boolean isEmpty()
        Specified by:
        isEmpty 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 java.lang.String getLabel()
        Specified by:
        getLabel in interface BlockAccess