com.sleepycat.je.log.entry
Class DeletedDupLNLogEntry

java.lang.Object
  extended by com.sleepycat.je.log.entry.BaseEntry
      extended by com.sleepycat.je.log.entry.LNLogEntry
          extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sleepycat.je.log.entry.LNLogEntry
LNLogEntry.DupStatus
 
Field Summary
 
Fields inherited from class com.sleepycat.je.log.entry.LNLogEntry
MIN_LOG_SIZE
 
Fields inherited from class com.sleepycat.je.log.entry.BaseEntry
entryType
 
Constructor Summary
DeletedDupLNLogEntry()
          Constructor to read an entry.
 
Method Summary
(package private)  byte[] combineDupKeyData()
          Combine old key and old LN's data into a new key, and set the LN's data to empty.
 StringBuilder dumpEntry(StringBuilder sb, boolean verbose)
          Extends super class to dump out extra key.
 int getSize()
          Extend super class to add in extra key.
 void readEntry(EnvironmentImpl envImpl, LogEntryHeader header, ByteBuffer entryBuffer)
          Extends its super class to read in the extra dup key.
 void writeEntry(LogEntryHeader header, ByteBuffer destBuffer)
          Serialize this object into the buffer.
 
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
 
Methods inherited from class com.sleepycat.je.log.entry.BaseEntry
clone, getLogType, getNoArgsConstructor, getResolvedItem, newInstanceOfType, newInstanceOfType, setLogType, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sleepycat.je.log.entry.LogEntry
clone, getLogType, getResolvedItem, setLogType
 

Constructor Detail

DeletedDupLNLogEntry

public DeletedDupLNLogEntry()
Constructor to read an entry.

Method Detail

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.