public class BlockAccessMem extends Object implements BlockAccess
BlockAccessByteArray| Modifier and Type | Field and Description |
|---|---|
static boolean |
SafeMode |
| Constructor and Description |
|---|
BlockAccessMem(String label,
int blockSize) |
| Modifier and Type | Method and Description |
|---|---|
Block |
allocate(int blkSize) |
long |
allocBoundary() |
void |
close() |
String |
getLabel() |
boolean |
isEmpty() |
void |
overwrite(Block block) |
Block |
read(long id) |
void |
resetAllocBoundary(long boundary)
Reset the allocation space (i.e.
|
void |
sync() |
String |
toString() |
boolean |
valid(long id) |
void |
write(Block block) |
public BlockAccessMem(String label, int blockSize)
public Block allocate(int blkSize)
allocate in interface BlockAccesspublic Block read(long id)
read in interface BlockAccesspublic void write(Block block)
write in interface BlockAccesspublic void overwrite(Block block)
overwrite in interface BlockAccesspublic boolean isEmpty()
isEmpty in interface BlockAccesspublic long allocBoundary()
allocBoundary in interface BlockAccesspublic void resetAllocBoundary(long boundary)
BlockAccessresetAllocBoundary in interface BlockAccesspublic boolean valid(long id)
valid in interface BlockAccesspublic void close()
close in interface org.apache.jena.atlas.lib.Closeablepublic void sync()
sync in interface org.apache.jena.atlas.lib.Syncpublic String getLabel()
getLabel in interface BlockAccessLicensed under the Apache License, Version 2.0