|
|||||||||
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.MapLN
public final class MapLN
A MapLN represents a Leaf Node in the JE DatabaseImpl Naming Tree.
Constructor Summary | |
---|---|
MapLN()
Create an empty MapLN, to be filled in from the log. |
|
MapLN(DatabaseImpl db)
Create a new MapLn to hold a new databaseImpl. |
Method Summary | |
---|---|
String |
beginTag()
|
protected void |
dumpLogAdditional(StringBuffer sb,
boolean verbose)
Dump additional fields. |
String |
dumpString(int nSpaces,
boolean dumpTags)
|
String |
endTag()
|
DatabaseImpl |
getDatabase()
|
int |
getLogSize()
|
LogEntryType |
getLogType()
|
long |
getMemorySizeIncludedByParent()
Compute the approximate size of this node in memory for evictor invocation purposes. |
protected LogEntryType |
getTransactionalLogType()
Log type for transactional entries. |
boolean |
isDeleted()
|
(package private) boolean |
isEvictable()
Does a guaranteed check by acquiring the write-lock and then calling isEvictableInexact. |
(package private) boolean |
isEvictableInexact()
Does a fast check without acquiring the MapLN write-lock. |
(package private) void |
makeDeleted()
|
void |
postFetchInit(DatabaseImpl db,
long sourceLsn)
Initialize a node that has been faulted in from the log. |
void |
readFromLog(ByteBuffer itemBuffer,
byte entryTypeVersion)
Initialize this object from the data in itemBuf. |
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, canBeAncestor, canMemorySizeChangeDuringLogging, copyData, delete, dumpLog, getData, getLastLoggedSize, isDirty, isSoughtNode, isValidForDelete, log, logUpdateMemUsage, logUpdateMemUsage, modify, optionalLog, optionalLogProvisional, optionalLogUpdateMemUsage, rebuildINList, setDirty, setLastLoggedSize |
Methods inherited from class com.sleepycat.je.tree.Node |
---|
containsDuplicates, dump, getLastId, getLevel, getNextNodeId, getNodeId, getTransactionId, getType, latchShared, matchLNByNodeId, releaseLatch, 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.Loggable |
---|
getTransactionId |
Constructor Detail |
---|
public MapLN(DatabaseImpl db)
public MapLN() throws DatabaseException
DatabaseException
Method Detail |
---|
public boolean isDeleted()
isDeleted
in class LN
void makeDeleted()
makeDeleted
in class LN
public DatabaseImpl getDatabase()
boolean isEvictableInexact()
isEvictableInexact
in class LN
boolean isEvictable() throws DatabaseException
isEvictable
in class LN
DatabaseException
public void postFetchInit(DatabaseImpl db, long sourceLsn) throws DatabaseException
postFetchInit
in class Node
DatabaseException
public long getMemorySizeIncludedByParent()
getMemorySizeIncludedByParent
in class LN
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()
getLogType
in class LN
Node.getLogType()
public int getLogSize()
getLogSize
in interface Loggable
getLogSize
in class LN
LN.getLogSize()
public void writeToLog(ByteBuffer logBuffer)
Loggable
writeToLog
in interface Loggable
writeToLog
in class LN
logBuffer
- is the destination bufferLN.writeToLog(java.nio.ByteBuffer)
public void readFromLog(ByteBuffer itemBuffer, byte entryTypeVersion) throws LogException
Loggable
readFromLog
in interface Loggable
readFromLog
in class LN
LogException
LN.readFromLog(java.nio.ByteBuffer, byte)
protected void dumpLogAdditional(StringBuffer sb, boolean verbose)
dumpLogAdditional
in class LN
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |