public class PageBlockMgr<T extends Page> extends Object implements org.apache.jena.atlas.lib.Closeable
| Modifier and Type | Method and Description |
|---|---|
long |
allocLimit() |
void |
close() |
T |
create(BlockType bType)
Allocate a new thing
|
void |
dump() |
void |
finishRead()
Signal the completion of an read operation
|
void |
finishUpdate()
Signal the completion of an update operation
|
void |
free(Page page) |
BlockMgr |
getBlockMgr() |
T |
getRead(int id)
Fetch a block for reading.
|
T |
getRead(int id,
int referencingId)
Fetch a block for reading.
|
T |
getWrite(int id)
Fetch a block for writing.
|
T |
getWrite(int id,
int referencingId)
Fetch a block for writing.
|
boolean |
promoteDuplicate(Page page)
Promote a page - return 'true' if the block changed (.reset()) will have been called
|
void |
promoteInPlace(Page page)
Promote a page to be writable in-place (block id does not change, hence page does not change id).
|
void |
put(T page) |
void |
release(Page page) |
void |
resetAlloc(long boundary) |
void |
startRead()
Signal the start of an read operation
|
void |
startUpdate()
Signal the start of an update operation
|
boolean |
valid(int id) |
void |
write(T page) |
public BlockMgr getBlockMgr()
public long allocLimit()
public void resetAlloc(long boundary)
public T getRead(int id)
id - Block to fetchpublic T getRead(int id, int referencingId)
id - Block to fetchreferencingId - Id of block referring to this one.
For example, a parent in a tree.
May be negative for "none" or "meaningless".public T getWrite(int id)
id - Block to fetchpublic T getWrite(int id, int referencingId)
id - Block to fetchreferencingId - Id of block referring to this one.
For example, a parent in a tree.
May be -1 for "none" or "meaningless".public void put(T page)
public void write(T page)
public void release(Page page)
public void free(Page page)
public void promoteInPlace(Page page)
public boolean promoteDuplicate(Page page)
public boolean valid(int id)
public void dump()
public void startUpdate()
public void finishUpdate()
public void startRead()
public void finishRead()
public void close()
close in interface org.apache.jena.atlas.lib.CloseableLicensed under the Apache License, Version 2.0