public final class BlockMgrFreeChain extends BlockMgrWrapper
| Constructor and Description |
|---|
BlockMgrFreeChain(BlockMgr blockMgr) |
| Modifier and Type | Method and Description |
|---|---|
Block |
allocate(int blockSize)
Allocate an uninitialized block - writable - call only inside a update sequence.
|
void |
free(Block block)
Announce a block is no longer in use (i.e it's now freed)
|
void |
resetAlloc(long boundary)
Reset the allocation limit, should be a number previously obtained from allocLimit
|
void |
sync()
Sync the block manager
|
String |
toString() |
boolean |
valid(int id)
Is this a valid block id? (may be a free block)
|
allocLimit, beginRead, beginUpdate, close, endRead, endUpdate, getLabel, getRead, getWrapped, getWrite, isClosed, isEmpty, overwrite, promote, release, syncForce, writepublic BlockMgrFreeChain(BlockMgr blockMgr)
public Block allocate(int blockSize)
BlockMgrallocate in interface BlockMgrallocate in class BlockMgrWrapperpublic void free(Block block)
BlockMgrfree in interface BlockMgrfree in class BlockMgrWrapperpublic void resetAlloc(long boundary)
BlockMgrresetAlloc in interface BlockMgrresetAlloc in class BlockMgrWrapperpublic boolean valid(int id)
BlockMgrvalid in interface BlockMgrvalid in class BlockMgrWrapperpublic void sync()
BlockMgrsync in interface org.apache.jena.atlas.lib.Syncsync in interface BlockMgrsync in class BlockMgrWrapperpublic String toString()
toString in class BlockMgrWrapperLicensed under the Apache License, Version 2.0