|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sleepycat.je.tree.BINDelta
public class BINDelta
BINDelta contains the information needed to create a partial (delta) BIN log entry. It also knows how to combine a full BIN log entry and a delta to generate a new BIN.
| Constructor Summary | |
|---|---|
BINDelta()
For instantiating from the log. |
|
BINDelta(BIN bin)
Read a BIN and create the deltas. |
|
| Method Summary | |
|---|---|
boolean |
countAsObsoleteWhenLogged()
Returns true if this item should be counted as obsoleted when logged. |
void |
dumpLog(StringBuffer sb,
boolean verbose)
Write the object into the string buffer for log dumping. |
DatabaseId |
getDbId()
|
long |
getLastFullLsn()
|
int |
getLogSize()
|
LogEntryType |
getLogType()
All objects that are reponsible for a generating a type of log entry must implement this. |
(package private) int |
getNumDeltas()
|
long |
getTransactionId()
|
boolean |
logEntryIsTransactional()
|
boolean |
marshallOutsideWriteLatch()
Return true if this item can be marshalled outside the log write latch. |
void |
postLogWork(long justLoggedLsn)
Do any processing we need to do after logging, while under the logging latch. |
void |
readFromLog(ByteBuffer itemBuffer,
byte entryTypeVersion)
Initialize this object from the data in itemBuf. |
BIN |
reconstituteBIN(EnvironmentImpl env)
Create a BIN by starting with the full version and applying the deltas. |
void |
writeToLog(ByteBuffer logBuffer)
Serialize this object into the buffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BINDelta(BIN bin)
public BINDelta()
| Method Detail |
|---|
int getNumDeltas()
public DatabaseId getDbId()
public long getLastFullLsn()
public BIN reconstituteBIN(EnvironmentImpl env)
throws DatabaseException
DatabaseExceptionpublic LogEntryType getLogType()
LoggableObject
getLogType in interface LoggableObjectpublic boolean marshallOutsideWriteLatch()
LoggableObject
marshallOutsideWriteLatch in interface LoggableObjectCan be marshalled outside the log write latch.public boolean countAsObsoleteWhenLogged()
LoggableObject
countAsObsoleteWhenLogged in interface LoggableObjectLoggableObject.countAsObsoleteWhenLogged()public void postLogWork(long justLoggedLsn)
LoggableObject
postLogWork in interface LoggableObject
public void readFromLog(ByteBuffer itemBuffer,
byte entryTypeVersion)
throws LogException
LogReadable
readFromLog in interface LogReadableLogExceptionpublic int getLogSize()
getLogSize in interface LogWritablepublic void writeToLog(ByteBuffer logBuffer)
LogWritable
writeToLog in interface LogWritablelogBuffer - is the destination buffer
public void dumpLog(StringBuffer sb,
boolean verbose)
LogReadable
dumpLog in interface LogReadablesb - destination string bufferverbose - if true, dump the full, verbose versionpublic boolean logEntryIsTransactional()
logEntryIsTransactional in interface LogReadableLogReadable.logEntryIsTransactional()public long getTransactionId()
getTransactionId in interface LogReadableLogReadable.getTransactionId()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||