public final class MapLN extends LN
NULL_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 |
|---|---|
String |
beginTag() |
protected void |
dumpLogAdditional(StringBuilder sb,
boolean verbose)
Dump additional fields.
|
String |
dumpString(int nSpaces,
boolean dumpTags) |
String |
endTag() |
DatabaseImpl |
getDatabase() |
int |
getLogSize(int logVersion,
boolean forReplication)
Returns the number of bytes needed to store this object in the format
for the specified log version.
|
protected LogEntryType |
getLogType(boolean isInsert,
boolean isTransactional,
DatabaseImpl db)
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() |
boolean |
isDirty() |
boolean |
logicalEquals(Loggable other)
Should never be replicated.
|
void |
postFetchInit(DatabaseImpl db,
long sourceLsn)
Initialize a node that has been faulted in from the log.
|
void |
readFromLog(ByteBuffer itemBuffer,
int entryVersion)
Initialize this object from the data in itemBuf.
|
String |
toString()
Default toString method at the root of the tree.
|
void |
writeToLog(ByteBuffer logBuffer,
int logVersion,
boolean forReplication)
Serializes this object into the specified buffer in the format for the
specified log version.
|
addExtraMarshaledMemorySize, clearDirty, copyEntryData, delete, dumpKey, dumpLog, getData, getEmbeddedLoggables, getFetchedCold, getGenericLogType, getLastFormatChange, getLogSize, getVLSNSequence, hasReplicationFormat, isLN, isReplicationFormatWorthwhile, log, makeLN, makeLN, modify, optionalLog, resolvePartialEntry, setDirty, setEmpty, setEntry, setEntry, setEntry, setFetchedCold, setVLSNSequence, writeToLogcontainsDuplicates, dump, getLevel, getTransactionId, getType, isBIN, isBINDelta, isBINDelta, isDBIN, isDIN, isIN, isUpperIN, latch, latchShared, latchShared, releaseLatchclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTransactionIdpublic MapLN(DatabaseImpl db)
public MapLN()
public DatabaseImpl getDatabase()
public void postFetchInit(DatabaseImpl db, long sourceLsn)
postFetchInit in class LNpublic long getMemorySizeIncludedByParent()
getMemorySizeIncludedByParent in class LNpublic String toString()
Nodepublic String dumpString(int nSpaces, boolean dumpTags)
dumpString in class LNprotected LogEntryType getLogType(boolean isInsert, boolean isTransactional, DatabaseImpl db)
getLogType in class LNpublic int getLogSize(int logVersion,
boolean forReplication)
VersionedWriteLoggableLogEntryType.LOG_VERSION_REPLICATE_OLDER or greater.getLogSize in interface VersionedWriteLoggablegetLogSize in class LNlogVersion - the log versionforReplication - whether the entry will be sent over the wire,
and not written to the log.public void writeToLog(ByteBuffer logBuffer, int logVersion, boolean forReplication)
VersionedWriteLoggableLogEntryType.LOG_VERSION_REPLICATE_OLDER or greater.writeToLog in interface VersionedWriteLoggablewriteToLog in class LNlogBuffer - the destination bufferlogVersion - the log versionforReplication - whether the entry will be sent over the wire,
and not written to the log.public void readFromLog(ByteBuffer itemBuffer, int entryVersion)
LoggablereadFromLog in interface LoggablereadFromLog in class LNitemBuffer - the source bufferentryVersion - the log version of the datapublic boolean logicalEquals(Loggable other)
logicalEquals in interface LoggablelogicalEquals in class LNprotected void dumpLogAdditional(StringBuilder sb, boolean verbose)
dumpLogAdditional in class LNCopyright © 2024. All rights reserved.