public final class NameLN extends LN
NULL_NODE_ID| Constructor and Description |
|---|
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.
|
| 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() |
Collection<VersionedWriteLoggable> |
getEmbeddedLoggables() |
DatabaseId |
getId() |
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 NameLN depends on whether it's
transactional.
|
boolean |
isDeleted() |
boolean |
logicalEquals(Loggable other) |
void |
readFromLog(ByteBuffer itemBuffer,
int entryVersion)
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,
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, getFetchedCold, getGenericLogType, getLastFormatChange, getLogSize, getMemorySizeIncludedByParent, getVLSNSequence, hasReplicationFormat, isDirty, isLN, isReplicationFormatWorthwhile, log, makeLN, makeLN, modify, optionalLog, postFetchInit, 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 NameLN(DatabaseId id)
public NameLN()
public DatabaseId getId()
public void setId(DatabaseId id)
public 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 Collection<VersionedWriteLoggable> getEmbeddedLoggables()
getEmbeddedLoggables in interface VersionedWriteLoggablegetEmbeddedLoggables in class LNReplicableLogEntry.getEmbeddedLoggables()public 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.