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, NodeLogEntry, java.lang.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.


Field Summary
 
Fields inherited from class com.sleepycat.je.log.entry.BaseEntry
entryType, logClass
 
Constructor Summary
DeletedDupLNLogEntry()
          Constructor to read an entry.
DeletedDupLNLogEntry(LogEntryType entryType, LN ln, DatabaseId dbId, byte[] key, byte[] dataAsKey, long abortLsn, boolean abortKnownDeleted, Txn txn)
          Constructor to make an object that can write this entry.
 
Method Summary
 java.lang.StringBuffer dumpEntry(java.lang.StringBuffer sb, boolean verbose)
          Extends super class to dump out extra key.
 byte[] getDupKey()
          Get the data-as-key out of the entry.
 int getSize()
          Extend super class to add in extra key.
 void readEntry(LogEntryHeader header, java.nio.ByteBuffer entryBuffer, boolean readFullItem)
          Extends its super class to read in the extra dup key.
 void writeEntry(LogEntryHeader header, java.nio.ByteBuffer destBuffer)
          Serialize this object into the buffer.
 
Methods inherited from class com.sleepycat.je.log.entry.LNLogEntry
clone, countAsObsoleteWhenLogged, getAbortKnownDeleted, getAbortLsn, getDbId, getKey, getLN, getMainItem, getNodeId, getTransactionId, getTxnId, getUserTxn, postLogWork, setLastLoggedSize
 
Methods inherited from class com.sleepycat.je.log.entry.BaseEntry
getLogType, setLogType
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sleepycat.je.log.entry.LogEntry
getLogType, setLogType
 

Constructor Detail

DeletedDupLNLogEntry

public DeletedDupLNLogEntry()
Constructor to read an entry.


DeletedDupLNLogEntry

public DeletedDupLNLogEntry(LogEntryType entryType,
                            LN ln,
                            DatabaseId dbId,
                            byte[] key,
                            byte[] dataAsKey,
                            long abortLsn,
                            boolean abortKnownDeleted,
                            Txn txn)
Constructor to make an object that can write this entry.

Method Detail

readEntry

public void readEntry(LogEntryHeader header,
                      java.nio.ByteBuffer entryBuffer,
                      boolean readFullItem)
               throws DatabaseException
Extends its super class to read in the extra dup key.

Specified by:
readEntry in interface LogEntry
Overrides:
readEntry in class LNLogEntry
Throws:
DatabaseException
See Also:
LNLogEntry.readEntry(com.sleepycat.je.log.LogEntryHeader, java.nio.ByteBuffer, boolean)

dumpEntry

public java.lang.StringBuffer dumpEntry(java.lang.StringBuffer 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.StringBuffer, 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,
                       java.nio.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

getDupKey

public byte[] getDupKey()
Get the data-as-key out of the entry.

Overrides:
getDupKey in class LNLogEntry


Copyright 2004,2008 Oracle. All rights reserved.