com.sleepycat.je.log.entry
Class DeletedDupLNLogEntry

java.lang.Object
  extended by com.sleepycat.je.log.entry.LNLogEntry
      extended by com.sleepycat.je.log.entry.DeletedDupLNLogEntry
All Implemented Interfaces:
LogEntry, NodeLogEntry, LoggableObject, LogWritable, 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.


Constructor Summary
DeletedDupLNLogEntry(boolean isTransactional)
          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
 StringBuffer dumpEntry(StringBuffer sb, boolean verbose)
          Extends super class to dump out extra key.
 byte[] getDupKey()
          Get the data-as-key out of the entry.
 int getLogSize()
          Extend super class to add in extra key.
 void readEntry(ByteBuffer entryBuffer, int entrySize, byte entryTypeVersion, boolean readFullItem)
          Extends its super class to read in the extra dup key.
 void writeToLog(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, getLogType, getMainItem, getNodeId, getTransactionId, getTxnId, getUserTxn, isTransactional, marshallOutsideWriteLatch, postLogWork
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeletedDupLNLogEntry

public DeletedDupLNLogEntry(boolean isTransactional)
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(ByteBuffer entryBuffer,
                      int entrySize,
                      byte entryTypeVersion,
                      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(java.nio.ByteBuffer, int, byte, boolean)

dumpEntry

public StringBuffer dumpEntry(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)

getLogSize

public int getLogSize()
Extend super class to add in extra key.

Specified by:
getLogSize in interface LogWritable
Overrides:
getLogSize in class LNLogEntry
Returns:
number of bytes used to store this object.
See Also:
LNLogEntry.getLogSize()

writeToLog

public void writeToLog(ByteBuffer destBuffer)
Description copied from interface: LogWritable
Serialize this object into the buffer.

Specified by:
writeToLog in interface LogWritable
Overrides:
writeToLog in class LNLogEntry
Parameters:
destBuffer - is the destination buffer
See Also:
LNLogEntry.writeToLog(java.nio.ByteBuffer)

getDupKey

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

Overrides:
getDupKey in class LNLogEntry


Copyright 2004-2005 Sleepycat, Inc. All Rights Reserved.