Package org.apache.jena.dboe.base.file
Class BlockAccessByteArray
java.lang.Object
org.apache.jena.dboe.base.file.BlockAccessByteArray
- All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable,org.apache.jena.atlas.lib.Sync,BlockAccess
FileAccess interface backed by a byte array.
-
Constructor Details
-
BlockAccessByteArray
-
-
Method Details
-
getLabel
- Specified by:
getLabelin interfaceBlockAccess
-
allocate
- Specified by:
allocatein interfaceBlockAccess
-
allocBoundary
public long allocBoundary()- Specified by:
allocBoundaryin interfaceBlockAccess
-
resetAllocBoundary
public 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
-
read
- Specified by:
readin interfaceBlockAccess
-
write
- Specified by:
writein interfaceBlockAccess
-
overwrite
- Specified by:
overwritein interfaceBlockAccess
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceBlockAccess
-
valid
public boolean valid(long id) - Specified by:
validin interfaceBlockAccess
-
sync
public void sync()- Specified by:
syncin interfaceorg.apache.jena.atlas.lib.Sync
-
close
public void close()- Specified by:
closein interfaceorg.apache.jena.atlas.lib.Closeable
-