Constructor and Description |
---|
MapLN()
Create an empty MapLN, to be filled in from the log.
|
MapLN(DatabaseImpl db)
Create a new MapLn to hold a new databaseImpl.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
beginTag() |
protected void |
dumpLogAdditional(java.lang.StringBuffer sb,
boolean verbose)
Dump additional fields.
|
java.lang.String |
dumpString(int nSpaces,
boolean dumpTags) |
java.lang.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() |
void |
postFetchInit(DatabaseImpl db,
long sourceLsn)
Initialize a node that has been faulted in from the log.
|
void |
readFromLog(java.nio.ByteBuffer itemBuffer,
byte entryTypeVersion)
Initialize this object from the data in itemBuf.
|
java.lang.String |
toString()
Default toString method at the root of the tree.
|
void |
writeToLog(java.nio.ByteBuffer logBuffer)
Serialize this object into the buffer.
|
canBeAncestor, copyData, delete, dumpLog, getData, getLastLoggedSize, isDirty, isSoughtNode, log, logUpdateMemUsage, logUpdateMemUsage, modify, optionalLog, optionalLogProvisional, optionalLogUpdateMemUsage, setLastLoggedSize
containsDuplicates, dump, getLastId, getNextNodeId, getNodeId, getTransactionId, getType, latchShared, releaseLatch, setLastNodeId, shortDescription, verify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTransactionId
public MapLN(DatabaseImpl db)
public MapLN() throws DatabaseException
DatabaseException
public DatabaseImpl getDatabase()
public void postFetchInit(DatabaseImpl db, long sourceLsn) throws DatabaseException
postFetchInit
in class Node
DatabaseException
public long getMemorySizeIncludedByParent()
getMemorySizeIncludedByParent
in class LN
public java.lang.String toString()
Node
public java.lang.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(java.nio.ByteBuffer logBuffer)
Loggable
writeToLog
in interface Loggable
writeToLog
in class LN
logBuffer
- is the destination bufferLN.writeToLog(java.nio.ByteBuffer)
public void readFromLog(java.nio.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(java.lang.StringBuffer sb, boolean verbose)
dumpLogAdditional
in class LN