public class DeletedDupLNLogEntry extends LNLogEntry<LN>
MIN_LOG_SIZE| Constructor and Description |
|---|
DeletedDupLNLogEntry()
Constructor to read an entry.
|
| Modifier and Type | Method and Description |
|---|---|
LogEntry |
clone() |
StringBuilder |
dumpEntry(StringBuilder sb,
boolean verbose)
Extends super class to dump out extra key.
|
Class<T> |
getLogClass()
Returns the class of the contained loggable item or items, or null if
the instance was created to write an entry.
|
LogEntryType |
getLogType() |
Object |
getResolvedItem(DatabaseImpl dbImpl)
By default, this log entry is complete and does not require fetching
additional entries.
|
int |
getSize() |
int |
getSize(int logVersion,
boolean forReplication)
Returns the number of bytes needed to store this entry in the format for
the specified log version.
|
boolean |
hasReplicationFormat()
Returns whether this format has a variant that is optimized for
replication.
|
boolean |
isReplicationFormatWorthwhile(ByteBuffer logBuffer,
int srcVersion,
int destVersion)
Returns whether it is worthwhile to materialize and then re-serialize a
log entry in a format optimized for replication.
|
void |
readEntry(EnvironmentImpl envImpl,
LogEntryHeader header,
ByteBuffer entryBuffer)
Extends its super class to read in the extra dup key.
|
void |
setLogType(LogEntryType entryType)
Inform a BaseEntry instance of its corresponding LogEntryType.
|
String |
toString() |
void |
writeEntry(ByteBuffer destBuffer)
Serialize this object into the buffer.
|
void |
writeEntry(ByteBuffer destBuffer,
int logVersion,
boolean forReplication)
Serializes this object into the specified buffer in the format for the
the specified log version.
|
countPriorVersionObsolete, create, dumpRep, getAbortData, getAbortExpiration, getAbortKey, getAbortKnownDeleted, getAbortLsn, getAbortVLSN, getData, getDbId, getEmbeddedData, getEmbeddedLoggables, getExpiration, getKey, getLastFormatChange, getLN, getMainItem, getPriorVersionLsn, getPriorVersionSize, getTransactionId, getTxnId, getUnconvertedDataLength, getUnconvertedKeyLength, getUserKeyData, getUserTxn, isAbortExpirationInHours, isDeleted, isEmbeddedLN, isExpirationInHours, isImmediatelyObsolete, logicalEquals, postFetchInit, postFetchInit, postLogWorkequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclone, getLogType, getResolvedItem, setLogTypepublic void readEntry(EnvironmentImpl envImpl, LogEntryHeader header, ByteBuffer entryBuffer)
readEntry in interface LogEntryreadEntry in class LNLogEntry<LN>public StringBuilder dumpEntry(StringBuilder sb, boolean verbose)
dumpEntry in interface LogEntrydumpEntry in class LNLogEntry<LN>public boolean hasReplicationFormat()
ReplicableLogEntryhasReplicationFormat in interface ReplicableLogEntryhasReplicationFormat in class LNLogEntry<LN>public boolean isReplicationFormatWorthwhile(ByteBuffer logBuffer, int srcVersion, int destVersion)
ReplicableLogEntryWARNING: The logBuffer position must not be changed by this method.
WARNING: The shared LogEntry object is used for calling this method, and this method must not change any of the fields in the object.
isReplicationFormatWorthwhile in interface ReplicableLogEntryisReplicationFormatWorthwhile in class LNLogEntry<LN>logBuffer - contains the entry that would be re-serialized.srcVersion - the log version of entry in logBuffer.destVersion - the version that would be used for re-serialization.public int getSize(int logVersion,
boolean forReplication)
ReplicableLogEntryLogEntryType.LOG_VERSION_REPLICATE_OLDER or greater.getSize in interface ReplicableLogEntrygetSize in class LNLogEntry<LN>logVersion - the log versionforReplication - whether the entry will be sent over the wire,
and not written to the log.public void writeEntry(ByteBuffer destBuffer, int logVersion, boolean forReplication)
ReplicableLogEntryLogEntryType.LOG_VERSION_REPLICATE_OLDER or greater.writeEntry in interface ReplicableLogEntrywriteEntry in class LNLogEntry<LN>destBuffer - the destination bufferlogVersion - the log versionforReplication - whether the entry will be sent over the wire,
and not written to the log.public void writeEntry(ByteBuffer destBuffer)
LogEntrywriteEntry in interface LogEntrydestBuffer - is the destination bufferpublic int getSize()
public Class<T> getLogClass()
public void setLogType(LogEntryType entryType)
setLogType in interface LogEntrypublic LogEntryType getLogType()
getLogType in interface LogEntrypublic Object getResolvedItem(DatabaseImpl dbImpl)
getResolvedItem in interface LogEntrypublic LogEntry clone()
Copyright © 2024. All rights reserved.