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
public abstract class BlockAccessBase extends java.lang.Object implements BlockAccess
Support for a disk file backed FileAccess
-
-
Constructor Summary
Constructors Constructor Description BlockAccessBase(java.lang.String filename, int blockSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longallocBoundary()voidclose()java.lang.StringgetLabel()booleanisClosed()booleanisEmpty()voidresetAllocBoundary(long boundary)Reset the allocation space (i.e.booleanvalid(long id)-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.jena.dboe.base.file.BlockAccess
allocate, overwrite, read, write
-
-
-
-
Method Detail
-
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
public java.lang.String getLabel()
- Specified by:
getLabelin interfaceBlockAccess
-
-