Class BlockAccessByteArray

  • All Implemented Interfaces:
    org.apache.jena.atlas.lib.Closeable, org.apache.jena.atlas.lib.Sync, BlockAccess

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

      • BlockAccessByteArray

        public BlockAccessByteArray​(java.lang.String label)
    • Method Detail

      • getLabel

        public java.lang.String getLabel()
        Specified by:
        getLabel 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
      • 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