Package org.apache.jena.dboe.base.page
Class PageBlockMgr<T extends Page>
java.lang.Object
org.apache.jena.dboe.base.page.PageBlockMgr<T>
- All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable
- Direct Known Subclasses:
RecordBufferPageMgr
public class PageBlockMgr<T extends Page>
extends Object
implements org.apache.jena.atlas.lib.Closeable
Engine that wraps from blocks to typed pages.
-
Method Summary
Modifier and TypeMethodDescriptionlongvoidclose()Allocate a new thingvoiddump()voidSignal the completion of an read operationvoidSignal the completion of an update operationvoidgetRead(int id) Fetch a block for reading.getRead(int id, int referencingId) Fetch a block for reading.getWrite(int id) Fetch a block for writing.getWrite(int id, int referencingId) Fetch a block for writing.booleanpromoteDuplicate(Page page) Promote a page - return 'true' if the block changed (.reset()) will have been calledvoidpromoteInPlace(Page page) Promote a page to be writable in-place (block id does not change, hence page does not change id).voidvoidvoidresetAlloc(long boundary) voidSignal the start of an read operationvoidSignal the start of an update operationbooleanvalid(int id) void
-
Method Details
-
getBlockMgr
-
allocLimit
public long allocLimit() -
resetAlloc
public void resetAlloc(long boundary) -
create
Allocate a new thing -
getRead
Fetch a block for reading.- Parameters:
id- Block to fetch
-
getRead
Fetch a block for reading.- Parameters:
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".
-
getWrite
Fetch a block for writing.- Parameters:
id- Block to fetch
-
getWrite
Fetch a block for writing.- Parameters:
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".
-
put
-
write
-
release
-
free
-
promoteInPlace
Promote a page to be writable in-place (block id does not change, hence page does not change id). -
promoteDuplicate
Promote a page - return 'true' if the block changed (.reset()) will have been called -
valid
public boolean valid(int id) -
dump
public void dump() -
startUpdate
public void startUpdate()Signal the start of an update operation -
finishUpdate
public void finishUpdate()Signal the completion of an update operation -
startRead
public void startRead()Signal the start of an read operation -
finishRead
public void finishRead()Signal the completion of an read operation -
close
public void close()- Specified by:
closein interfaceorg.apache.jena.atlas.lib.Closeable
-