Package org.apache.jena.dboe.base.file
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
Support for a disk file backed FileAccess
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jena.dboe.base.file.BlockAccess
allocate, overwrite, read, writeMethods inherited from interface org.apache.jena.atlas.lib.Sync
sync
-
Constructor Details
-
BlockAccessBase
-
-
Method Details
-
isEmpty
public final boolean isEmpty()- Specified by:
isEmptyin interfaceBlockAccess
-
allocBoundary
public final long allocBoundary()- Specified by:
allocBoundaryin interfaceBlockAccess
-
resetAllocBoundary
public final void resetAllocBoundary(long boundary) Description copied from interface:BlockAccessReset 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:
resetAllocBoundaryin interfaceBlockAccess
-
valid
public final boolean valid(long id) - Specified by:
validin interfaceBlockAccess
-
isClosed
public final boolean isClosed() -
close
public final void close()- Specified by:
closein interfaceorg.apache.jena.atlas.lib.Closeable
-
getLabel
- Specified by:
getLabelin interfaceBlockAccess
-