| Modifier | Constructor and Description |
|---|---|
protected |
Node()
Only for subclasses.
|
protected |
Node(EnvironmentImpl envImpl,
boolean replicated)
Create a new node, assigning it the next available node id.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) abstract void |
accountForSubtreeRemoval(INList inList,
LocalUtilizationTracker localTracker)
Remove yourself from the in memory list if you're a type of node that
is put there.
|
protected abstract boolean |
canBeAncestor(boolean targetContainsDuplicates) |
boolean |
containsDuplicates() |
void |
dump(int nSpaces) |
void |
dumpLog(java.lang.StringBuffer sb,
boolean verbose)
Write the object into the string buffer for log dumping.
|
(package private) java.lang.String |
dumpString(int nSpaces,
boolean dumpTags) |
int |
getLevel()
Cover for LN's and just return 0 since they'll always be at the bottom
of the tree.
|
int |
getLogSize() |
abstract LogEntryType |
getLogType() |
protected long |
getMemorySizeIncludedByParent()
Return the approximate size of this node in memory, if this size should
be included in it's parents memory accounting.
|
long |
getNodeId() |
long |
getTransactionId() |
java.lang.String |
getType() |
protected abstract boolean |
isSoughtNode(long nid,
CacheMode cacheMode) |
(package private) abstract boolean |
isValidForDelete() |
void |
latchShared() |
void |
latchShared(CacheMode ignore) |
(package private) boolean |
matchLNByNodeId(TreeLocation location,
long nodeId,
CacheMode cachemode) |
void |
postFetchInit(DatabaseImpl db,
long sourceLsn)
Initialize a node that has been faulted in from the log.
|
void |
readFromLog(java.nio.ByteBuffer itemBuffer,
byte 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() |
(package private) void |
setNodeId(long nid) |
java.lang.String |
shortDescription() |
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, waitlogicalEqualsprotected Node()
protected Node(EnvironmentImpl envImpl, boolean replicated)
public void postFetchInit(DatabaseImpl db, long sourceLsn) throws DatabaseException
DatabaseExceptionpublic long getNodeId()
void setNodeId(long nid)
public void latchShared()
throws DatabaseException
DatabaseExceptionpublic void latchShared(CacheMode ignore) throws DatabaseException
DatabaseExceptionpublic void releaseLatch()
throws LatchNotHeldException
LatchNotHeldExceptionpublic void verify(byte[] maxKey)
throws DatabaseException
DatabaseExceptionpublic boolean containsDuplicates()
public int getLevel()
boolean matchLNByNodeId(TreeLocation location, long nodeId, CacheMode cachemode) throws DatabaseException
DatabaseExceptionabstract void rebuildINList(INList inList) throws DatabaseException
DatabaseExceptionabstract void accountForSubtreeRemoval(INList inList, LocalUtilizationTracker localTracker) throws DatabaseException
DatabaseExceptionabstract boolean isValidForDelete()
throws DatabaseException
DatabaseExceptionprotected abstract boolean isSoughtNode(long nid,
CacheMode cacheMode)
throws DatabaseException
DatabaseExceptionprotected abstract boolean canBeAncestor(boolean targetContainsDuplicates)
protected 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 shortDescription()
public java.lang.String getType()
public abstract LogEntryType getLogType()
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,
byte entryVersion)
throws LogException
LoggablereadFromLog in interface LoggableLogExceptionLoggable.readFromLog(java.nio.ByteBuffer, byte)public void dumpLog(java.lang.StringBuffer sb,
boolean verbose)
LoggabledumpLog in interface Loggablesb - destination string bufferverbose - if true, dump the full, verbose versionLoggable.dumpLog(java.lang.StringBuffer, boolean)public long getTransactionId()
getTransactionId in interface LoggableLoggable.getTransactionId()Copyright (c) 2004,2008 Oracle. All rights reserved.