|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.util.CacheObject
org.h2.store.Page
org.h2.index.PageBtree
public abstract class PageBtree
A page that contains index data.
| Field Summary | |
|---|---|
protected Data |
data
The data page. |
protected int |
entryCount
The number of entries. |
protected PageBtreeIndex |
index
The index. |
protected int |
memoryEstimated
The estimated memory used by this object. |
protected int[] |
offsets
The row offsets. |
protected boolean |
onlyPosition
If only the position of the row is stored in the page |
protected int |
parentPageId
The page number of the parent. |
protected SearchRow[] |
rows
The index data |
protected int |
start
The start of the data area. |
protected boolean |
written
Whether the data page is up-to-date. |
| Fields inherited from class org.h2.store.Page |
|---|
changeCount, FLAG_LAST, TYPE_BTREE_LEAF, TYPE_BTREE_NODE, TYPE_DATA_LEAF, TYPE_DATA_NODE, TYPE_DATA_OVERFLOW, TYPE_EMPTY, TYPE_FREE_LIST, TYPE_STREAM_DATA, TYPE_STREAM_TRUNK |
| Fields inherited from class org.h2.util.CacheObject |
|---|
cacheChained, cacheNext, cachePrevious |
| Method Summary | |
|---|---|
boolean |
canRemove()
Check if the object can be removed from the cache. |
int |
getMemory()
Get the estimated memory size. |
protected void |
memoryChange()
The memory usage of this page was changed. |
protected void |
readAllRows()
Ensure all rows are read in memory. |
| Methods inherited from class org.h2.store.Page |
|---|
add, canMove, insert, insert, insert, moveTo, remove, remove, remove, write |
| Methods inherited from class org.h2.util.CacheObject |
|---|
compareTo, getPos, isChanged, isStream, setChanged, setPos |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final PageBtreeIndex index
protected int parentPageId
protected final Data data
protected int[] offsets
protected int entryCount
protected SearchRow[] rows
protected int start
protected boolean onlyPosition
protected boolean written
protected int memoryEstimated
| Method Detail |
|---|
protected void memoryChange()
protected void readAllRows()
public int getMemory()
getMemory in class CacheObjectpublic boolean canRemove()
CacheObject
canRemove in class CacheObject
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||