| Modifier and Type | Field and Description |
|---|---|
static long |
NULL_NODE_ID |
| Modifier | Constructor and Description |
|---|---|
protected |
Node()
Only for subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) abstract void |
accountForDeferredWriteSubtreeRemoval(INList inList,
IN subtreeParent)
For a deferred-write DB, account for a deleted subtree.
|
(package private) abstract void |
accountForSubtreeRemoval(INList inList,
LocalUtilizationTracker tracker)
For a regular (not deferred-write) DB, account for a deleted subtree.
|
boolean |
containsDuplicates()
Since DIN/DBIN/DupCountLN are no longer used in the Btree, this method
should normally only be used by dup conversion or entities that do not
access records via the Btree.
|
void |
dump(int nSpaces) |
void |
dumpLog(java.lang.StringBuilder sb,
boolean verbose)
Write the object into the string buffer for log dumping.
|
(package private) java.lang.String |
dumpString(int nSpaces,
boolean dumpTags) |
abstract LogEntryType |
getGenericLogType()
Returns the generic LogEntryType for this node.
|
int |
getLevel()
Cover for LN's and just return 0 since they'll always be at the bottom
of the tree.
|
int |
getLogSize() |
long |
getMemorySizeIncludedByParent()
Return the approximate size of this node in memory, if this size should
be included in its parents memory accounting.
|
long |
getTransactionId() |
java.lang.String |
getType() |
abstract void |
incFetchStats(EnvironmentImpl envImpl,
boolean isMiss)
We categorize fetch stats by the type of node, so node subclasses
update different stats.
|
boolean |
isBIN() |
boolean |
isCompressible() |
boolean |
isIN() |
boolean |
isLN() |
(package private) abstract boolean |
isValidForDelete() |
void |
latchShared() |
void |
latchShared(CacheMode ignore) |
void |
postFetchInit(DatabaseImpl db,
long sourceLsn) |
void |
readFromLog(java.nio.ByteBuffer itemBuffer,
int entryVersion)
Initialize this object from the data in itemBuf.
|
(package private) abstract void |
rebuildINList(INList inList)
Add yourself to the in memory list if you're a type of node that
should belong.
|
void |
releaseLatch() |
java.lang.String |
toString()
Default toString method at the root of the tree.
|
void |
verify(byte[] maxKey) |
void |
writeToLog(java.nio.ByteBuffer logBuffer)
Serialize this object into the buffer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitlogicalEqualspublic static final long NULL_NODE_ID
public void postFetchInit(DatabaseImpl db, long sourceLsn) throws DatabaseException
DatabaseException - from subclasses.public void latchShared()
throws DatabaseException
DatabaseException - from subclasses.public void latchShared(CacheMode ignore) throws DatabaseException
DatabaseException - from subclasses.public void releaseLatch()
public void verify(byte[] maxKey)
throws DatabaseException
DatabaseException - from subclasses.public boolean containsDuplicates()
public int getLevel()
abstract void rebuildINList(INList inList) throws DatabaseException
DatabaseExceptionabstract void accountForSubtreeRemoval(INList inList, LocalUtilizationTracker tracker) throws DatabaseException
DatabaseExceptionabstract void accountForDeferredWriteSubtreeRemoval(INList inList, IN subtreeParent) throws DatabaseException
DatabaseExceptionabstract boolean isValidForDelete()
throws DatabaseException
DatabaseExceptionpublic boolean isLN()
public boolean isIN()
public boolean isBIN()
public boolean isCompressible()
public long getMemorySizeIncludedByParent()
public java.lang.String toString()
toString in class java.lang.Objectpublic void dump(int nSpaces)
java.lang.String dumpString(int nSpaces,
boolean dumpTags)
public java.lang.String getType()
public abstract void incFetchStats(EnvironmentImpl envImpl, boolean isMiss)
public abstract LogEntryType getGenericLogType()
public int getLogSize()
getLogSize in interface LoggableLoggable.getLogSize()public void writeToLog(java.nio.ByteBuffer logBuffer)
LoggablewriteToLog in interface LoggablelogBuffer - is the destination bufferLoggable.writeToLog(java.nio.ByteBuffer)public void readFromLog(java.nio.ByteBuffer itemBuffer,
int entryVersion)
LoggablereadFromLog in interface LoggableLoggable.readFromLog(java.nio.ByteBuffer, int)public void dumpLog(java.lang.StringBuilder sb,
boolean verbose)
LoggabledumpLog in interface Loggablesb - destination string bufferverbose - if true, dump the full, verbose versionLoggable.dumpLog(java.lang.StringBuilder, boolean)public long getTransactionId()
getTransactionId in interface LoggableLoggable.getTransactionId()Copyright (c) 2004-2012 Oracle. All rights reserved.