public final class MapLN extends LN
LN.LNWriteFailureExceptionNULL_NODE_ID| 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.StringBuilder sb,
boolean verbose)
Dump additional fields.
|
java.lang.String |
dumpString(int nSpaces,
boolean dumpTags) |
java.lang.String |
endTag() |
DatabaseImpl |
getDatabase() |
int |
getLogSize() |
protected LogEntryType |
getLogType(boolean isInsert,
boolean isTransactional)
Return the correct log entry type for a MapLN depends on whether it's
transactional.
|
long |
getMemorySizeIncludedByParent()
Compute the approximate size of this node in memory for evictor
invocation purposes.
|
boolean |
isDeleted() |
(package private) boolean |
isEvictable(long lsn)
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.
|
boolean |
logicalEquals(Loggable other) |
(package private) void |
makeDeleted() |
void |
postFetchInit(DatabaseImpl db,
long sourceLsn)
Initialize a node that has been faulted in from the log.
|
void |
readFromLog(java.nio.ByteBuffer itemBuffer,
int entryVersion)
Initialize this object from the data in itemBuf.
|
void |
releaseMemoryBudget()
Release the memory budget for any objects referenced by this
LN.
|
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.
|
accountForDeferredWriteSubtreeRemoval, accountForSubtreeRemoval, addExtraMarshaledMemorySize, copyEntryData, createLogEntry, delete, dumpKey, dumpLog, getData, getGenericLogType, getLastLoggedSize, getVLSNSequence, incFetchStats, isDirty, isLN, isValidForDelete, log, log, makeLN, makeLN, modify, optionalLog, optionalLogProvisional, rebuildINList, resolvePartialEntry, setDirty, setEmpty, setEntry, setEntry, setLastLoggedSize, setVLSNSequencecontainsDuplicates, dump, getLevel, getTransactionId, getType, isBIN, isCompressible, isIN, latchShared, latchShared, releaseLatch, verifyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTransactionIdpublic MapLN(DatabaseImpl db)
public MapLN()
void makeDeleted()
makeDeleted in class LNpublic DatabaseImpl getDatabase()
boolean isEvictableInexact()
isEvictableInexact in class LNboolean isEvictable(long lsn)
throws DatabaseException
isEvictable in class LNDatabaseException - from subclasses.public void postFetchInit(DatabaseImpl db, long sourceLsn)
postFetchInit in class Nodepublic long getMemorySizeIncludedByParent()
getMemorySizeIncludedByParent in class LNpublic void releaseMemoryBudget()
LNreleaseMemoryBudget in class LNLN.releaseMemoryBudget()public java.lang.String toString()
Nodepublic java.lang.String dumpString(int nSpaces,
boolean dumpTags)
dumpString in class LNprotected LogEntryType getLogType(boolean isInsert, boolean isTransactional)
getLogType in class LNpublic int getLogSize()
getLogSize in interface LoggablegetLogSize in class LNLN.getLogSize()public void writeToLog(java.nio.ByteBuffer logBuffer)
LoggablewriteToLog in interface LoggablewriteToLog in class LNlogBuffer - is the destination bufferLN.writeToLog(java.nio.ByteBuffer)public void readFromLog(java.nio.ByteBuffer itemBuffer,
int entryVersion)
LoggablereadFromLog in interface LoggablereadFromLog in class LNLN.readFromLog(java.nio.ByteBuffer, int)public boolean logicalEquals(Loggable other)
logicalEquals in interface LoggablelogicalEquals in class LNShould never be replicated.protected void dumpLogAdditional(java.lang.StringBuilder sb,
boolean verbose)
dumpLogAdditional in class LNCopyright (c) 2004-2012 Oracle. All rights reserved.