|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.tree.Node
com.sleepycat.je.tree.LN
com.sleepycat.je.tree.NameLN
public final class NameLN
A NameLN represents a Leaf Node in the name->database id mapping tree.
Constructor Summary | |
---|---|
NameLN()
Create an empty NameLN, to be filled in from the log. |
|
NameLN(DatabaseId id)
In the ideal world, we'd have a base LN class so that this NameLN doesn't have a superfluous data field, but we want to optimize the LN class for size and speed right now. |
Method Summary | |
---|---|
String |
beginTag()
|
protected void |
dumpLogAdditional(StringBuffer sb)
Dump additional fields. |
String |
dumpString(int nSpaces,
boolean dumpTags)
|
String |
endTag()
|
DatabaseId |
getId()
|
int |
getLogSize()
|
LogEntryType |
getLogType()
All objects that are reponsible for a generating a type of log entry must implement this. |
protected LogEntryType |
getTransactionalLogType()
Log type for transactional entries. |
boolean |
isDeleted()
|
(package private) void |
makeDeleted()
|
void |
readFromLog(ByteBuffer itemBuffer,
byte entryTypeVersion)
Initialize this object from the data in itemBuf. |
void |
setId(DatabaseId id)
|
String |
toString()
Default toString method at the root of the tree. |
void |
writeToLog(ByteBuffer logBuffer)
Serialize this object into the buffer. |
Methods inherited from class com.sleepycat.je.tree.LN |
---|
accountForSubtreeRemoval, addToDirtyMap, canBeAncestor, copyData, countAsObsoleteWhenLogged, delete, dumpLog, getData, getMemorySizeIncludedByParent, getTransactionId, isSoughtNode, isValidForDelete, log, logEntryIsTransactional, logProvisional, modify, rebuildINList |
Methods inherited from class com.sleepycat.je.tree.Node |
---|
containsDuplicates, dump, getLastId, getLevel, getNextNodeId, getNodeId, getType, marshallOutsideWriteLatch, matchLNByNodeId, postFetchInit, postLogWork, setLastNodeId, setNodeId, shortDescription, verify |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.sleepycat.je.log.LoggableObject |
---|
marshallOutsideWriteLatch, postLogWork |
Constructor Detail |
---|
public NameLN(DatabaseId id)
public NameLN()
Method Detail |
---|
public boolean isDeleted()
isDeleted
in class LN
void makeDeleted()
makeDeleted
in class LN
public DatabaseId getId()
public void setId(DatabaseId id)
public String toString()
Node
toString
in class Node
public String beginTag()
beginTag
in class LN
public String endTag()
endTag
in class LN
public String dumpString(int nSpaces, boolean dumpTags)
dumpString
in class LN
protected LogEntryType getTransactionalLogType()
getTransactionalLogType
in class LN
public LogEntryType getLogType()
LoggableObject
getLogType
in interface LoggableObject
getLogType
in class LN
LN.getLogType()
public int getLogSize()
getLogSize
in interface LogWritable
getLogSize
in class LN
LN.getLogSize()
public void writeToLog(ByteBuffer logBuffer)
LogWritable
writeToLog
in interface LogWritable
writeToLog
in class LN
logBuffer
- is the destination bufferLN.writeToLog(java.nio.ByteBuffer)
public void readFromLog(ByteBuffer itemBuffer, byte entryTypeVersion) throws LogException
LogReadable
readFromLog
in interface LogReadable
readFromLog
in class LN
LogException
LN.readFromLog(java.nio.ByteBuffer, byte)
protected void dumpLogAdditional(StringBuffer sb)
dumpLogAdditional
in class LN
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |