com.sleepycat.je.log.entry
Class BINDeltaLogEntry

java.lang.Object
  extended by com.sleepycat.je.log.entry.SingleItemEntry
      extended by com.sleepycat.je.log.entry.BINDeltaLogEntry
All Implemented Interfaces:
INContainingEntry, LogEntry, java.lang.Cloneable

public class BINDeltaLogEntry
extends SingleItemEntry
implements INContainingEntry

A BINDeltaLogEntry knows how to create a whole BIN from a delta entry.


Constructor Summary
BINDeltaLogEntry(java.lang.Class<BINDelta> logClass)
           
 
Method Summary
 boolean countAsObsoleteWhenLogged()
          Returns true if this item should be counted as obsoleted when logged.
 DatabaseId getDbId()
           
 IN getIN(EnvironmentImpl env)
           
 int getLastLoggedSize()
          By default, return zero because the last logged size is unknown.
 LogEntryType getLogType()
           
 long getLsnOfIN(long lastReadLsn)
           
 void postLogWork(long justLoggedLsn)
          Do any processing we need to do after logging, while under the logging latch.
 void setLogType(LogEntryType entryType)
          Inform a BaseEntry instance of its corresponding LogEntryType.
 java.lang.String toString()
           
 
Methods inherited from class com.sleepycat.je.log.entry.SingleItemEntry
clone, dumpEntry, getMainItem, getSize, getTransactionId, logicalEquals, readEntry, writeEntry
 
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
countAsObsoleteWhenLogged, getLastLoggedSize, getLogType, postLogWork, setLogType
 

Constructor Detail

BINDeltaLogEntry

public BINDeltaLogEntry(java.lang.Class<BINDelta> logClass)
Parameters:
logClass -
Method Detail

getIN

public IN getIN(EnvironmentImpl env)
         throws DatabaseException
Specified by:
getIN in interface INContainingEntry
Returns:
the IN held within this log entry.
Throws:
DatabaseException

getDbId

public DatabaseId getDbId()
Specified by:
getDbId in interface INContainingEntry
Returns:
the database id held within this log entry.

getLsnOfIN

public long getLsnOfIN(long lastReadLsn)
Specified by:
getLsnOfIN in interface INContainingEntry
Returns:
the LSN that represents this IN. For this BINDelta, it's the last full version.

setLogType

public void setLogType(LogEntryType entryType)
Inform a BaseEntry instance of its corresponding LogEntryType.


getLogType

public LogEntryType getLogType()
Returns:
the type of log entry

getLastLoggedSize

public int getLastLoggedSize()
By default, return zero because the last logged size is unknown. This method is overridden by LNLogEntry.


countAsObsoleteWhenLogged

public boolean countAsObsoleteWhenLogged()
Returns true if this item should be counted as obsoleted when logged. This currently applies to deleted LNs only.


postLogWork

public void postLogWork(long justLoggedLsn)
                 throws DatabaseException
Do any processing we need to do after logging, while under the logging latch.

Throws:
DatabaseException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object