com.sleepycat.je.log.entry
Class DeletedDupLNLogEntry
java.lang.Object
com.sleepycat.je.log.entry.BaseEntry
com.sleepycat.je.log.entry.LNLogEntry
com.sleepycat.je.log.entry.DeletedDupLNLogEntry
- All Implemented Interfaces:
- LogEntry, Cloneable
public class DeletedDupLNLogEntry
- extends LNLogEntry
DupDeletedLNEntry encapsulates a deleted dupe LN entry. This contains all
the regular transactional LN log entry fields and an extra key, which is the
nulled out data field of the LN (which becomes the key in the duplicate
tree.
WARNING: Obsolete in version 8, only used by some log readers.
TODO Move to dupConvert package, after testing is complete.
Methods inherited from class com.sleepycat.je.log.entry.LNLogEntry |
dumpRep, getAbortKnownDeleted, getAbortLsn, getBaseLNEntrySize, getDbId, getKey, getLastLoggedSize, getLN, getMainItem, getTransactionId, getTxnId, getUnconvertedDataLength, getUnconvertedKeyLength, getUserKeyData, getUserTxn, isDeleted, logicalEquals, newLNInstance, postFetchInit, postFetchInit, postLogWork, readBaseLNEntry, writeBaseLNEntry |
DeletedDupLNLogEntry
public DeletedDupLNLogEntry()
- Constructor to read an entry.
combineDupKeyData
byte[] combineDupKeyData()
- Description copied from class:
LNLogEntry
- Combine old key and old LN's data into a new key, and set the LN's data
to empty.
- Overrides:
combineDupKeyData
in class LNLogEntry
readEntry
public void readEntry(EnvironmentImpl envImpl,
LogEntryHeader header,
ByteBuffer entryBuffer)
- Extends its super class to read in the extra dup key.
- Specified by:
readEntry
in interface LogEntry
- Overrides:
readEntry
in class LNLogEntry
- See Also:
LNLogEntry.readEntry(com.sleepycat.je.dbi.EnvironmentImpl, com.sleepycat.je.log.LogEntryHeader, java.nio.ByteBuffer)
dumpEntry
public StringBuilder dumpEntry(StringBuilder sb,
boolean verbose)
- Extends super class to dump out extra key.
- Specified by:
dumpEntry
in interface LogEntry
- Overrides:
dumpEntry
in class LNLogEntry
- See Also:
LNLogEntry.dumpEntry(java.lang.StringBuilder, boolean)
getSize
public int getSize()
- Extend super class to add in extra key.
- Specified by:
getSize
in interface LogEntry
- Overrides:
getSize
in class LNLogEntry
- Returns:
- size of byte buffer needed to store this entry.
- See Also:
LNLogEntry.getSize()
writeEntry
public void writeEntry(LogEntryHeader header,
ByteBuffer destBuffer)
- Description copied from interface:
LogEntry
- Serialize this object into the buffer.
- Specified by:
writeEntry
in interface LogEntry
- Overrides:
writeEntry
in class LNLogEntry
destBuffer
- is the destination buffer- See Also:
LogEntry#writeToLog
Copyright (c) 2004-2012 Oracle. All rights reserved.