|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.storage.store.DOMFile.ClockPageBuffer
Cache for data pages. Pages are put on top of a stack. If the stack size exceeds blockBuffers, the last page in the stack will be removed and saved to disk. When a page is removed, it's dirty flag is check to determine if the page needs to be saved. If the page is dirty, the page is saved.
Field Summary | |
protected int |
blockBuffers
|
protected int |
hits
|
protected it.unimi.dsi.fastutil.Long2ObjectLinkedOpenHashMap |
map
|
protected int |
misses
|
Constructor Summary | |
DOMFile.ClockPageBuffer()
Constructor for the PageBuffer object |
|
DOMFile.ClockPageBuffer(int blockBuffers)
Constructor for the PageBuffer object |
Method Summary | |
void |
add(DOMFile.DOMPage page)
|
void |
add(DOMFile.DOMPage page,
int initialRefCount)
Description of the Method |
void |
clear()
|
void |
flush()
Description of the Method |
DOMFile.DOMPage |
get(long pnum)
Description of the Method |
DOMFile.DOMPage |
get(org.dbxml.core.filer.Paged.Page page)
Description of the Method |
void |
printStatistics()
|
void |
remove(DOMFile.DOMPage page)
Description of the Method |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int blockBuffers
protected int hits
protected it.unimi.dsi.fastutil.Long2ObjectLinkedOpenHashMap map
protected int misses
Constructor Detail |
public DOMFile.ClockPageBuffer(int blockBuffers)
blockBuffers
- Description of the Parameterpublic DOMFile.ClockPageBuffer()
Method Detail |
public void add(DOMFile.DOMPage page)
public void add(DOMFile.DOMPage page, int initialRefCount)
page
- Description of the Parameterpublic void flush()
public void clear()
public DOMFile.DOMPage get(org.dbxml.core.filer.Paged.Page page)
page
- Description of the Parameter
public DOMFile.DOMPage get(long pnum)
pnum
- Description of the Parameter
public void remove(DOMFile.DOMPage page)
page
- Description of the Parameterpublic void printStatistics()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |