public class PageDataLeaf extends Page
| 限定符和类型 | 字段和说明 |
|---|---|
protected Data |
data
The data page.
|
protected int |
entryCount
The number of entries.
|
protected PageDataIndex |
index
The index.
|
protected long[] |
keys
The row keys.
|
protected int |
parentPageId
The page number of the parent.
|
protected boolean |
written
Whether the data page is up-to-date.
|
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_TRUNKcacheChained, cacheNext, cachePrevious| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
canRemove()
Check if the object can be removed from the cache.
|
int |
getMemory()
Get the estimated heap memory size.
|
boolean |
isStream() |
void |
moveTo(Session session,
int newPos)
Copy the data to a new location, change the parent to point to the new
location, and free up the current page.
|
static Page |
read(PageDataIndex index,
Data data,
int pageId)
Read a data leaf page.
|
protected void |
remapChildren(int old)
Update the parent id of all children.
|
String |
toString() |
void |
write()
Write the page.
|
compareTo, getPos, isChanged, setChanged, setPosprotected final PageDataIndex index
protected int parentPageId
protected final Data data
protected int entryCount
protected long[] keys
protected boolean written
public static Page read(PageDataIndex index, Data data, int pageId)
index - the indexdata - the datapageId - the page idprotected void remapChildren(int old)
old - the previous positionpublic void moveTo(Session session, int newPos)
Pagepublic boolean isStream()
isStream 在类中 CacheObjectpublic int getMemory()
getMemory 在类中 CacheObjectpublic boolean canRemove()
CacheObjectcanRemove 在类中 CacheObjectCopyright © 2017. All rights reserved.