|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.log.entry.INLogEntry
public class INLogEntry
INLogEntry embodies all IN log entries. On disk, an IN log entry contains:
IN database id obsolete LSN -- in version 2
Constructor Summary | |
---|---|
INLogEntry(java.lang.Class<? extends IN> INClass)
Construct a log entry for reading. |
|
INLogEntry(IN in)
Construct a log entry for writing to the log. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
boolean |
countAsObsoleteWhenLogged()
Returns true if this item should be counted as obsoleted when logged. |
java.lang.StringBuffer |
dumpEntry(java.lang.StringBuffer sb,
boolean verbose)
Print out the contents of an entry. |
DatabaseId |
getDbId()
All node entries have a database ID. |
IN |
getIN(EnvironmentImpl env)
|
int |
getLastLoggedSize()
By default, return zero because the last logged size is unknown. |
LogEntryType |
getLogType()
|
long |
getLsnOfIN(long lastReadLsn)
|
java.lang.Object |
getMainItem()
|
long |
getNodeId()
Returns the node ID. |
long |
getObsoleteLsn()
Returns the LSN of the prior version of this node. |
int |
getSize()
|
long |
getTransactionId()
|
boolean |
logicalEquals(LogEntry other)
|
void |
postLogWork(long justLoggedLsn)
Do any processing we need to do after logging, while under the logging latch. |
void |
readEntry(LogEntryHeader header,
java.nio.ByteBuffer entryBuffer,
boolean readFullItem)
Read in an IN entry. |
void |
setLogType(LogEntryType entryType)
Inform a BaseEntry instance of its corresponding LogEntryType. |
java.lang.String |
toString()
|
void |
writeEntry(LogEntryHeader header,
java.nio.ByteBuffer destBuffer)
Serialize this object into the buffer. |
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 |
---|
public INLogEntry(java.lang.Class<? extends IN> INClass)
public INLogEntry(IN in)
Method Detail |
---|
public void readEntry(LogEntryHeader header, java.nio.ByteBuffer entryBuffer, boolean readFullItem) throws DatabaseException
readEntry
in interface LogEntry
DatabaseException
public long getObsoleteLsn()
public java.lang.StringBuffer dumpEntry(java.lang.StringBuffer sb, boolean verbose)
dumpEntry
in interface LogEntry
public java.lang.Object getMainItem()
getMainItem
in interface LogEntry
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface LogEntry
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public long getTransactionId()
getTransactionId
in interface LogEntry
LogEntry.getTransactionId()
public int getSize()
getSize
in interface LogEntry
public void writeEntry(LogEntryHeader header, java.nio.ByteBuffer destBuffer)
LogEntry
writeEntry
in interface LogEntry
destBuffer
- is the destination bufferLogEntry.writeEntry(com.sleepycat.je.log.LogEntryHeader, java.nio.ByteBuffer)
public IN getIN(EnvironmentImpl env) throws DatabaseException
getIN
in interface INContainingEntry
DatabaseException
public long getNodeId()
NodeLogEntry
getNodeId
in interface NodeLogEntry
NodeLogEntry.getNodeId()
public DatabaseId getDbId()
NodeLogEntry
getDbId
in interface INContainingEntry
getDbId
in interface NodeLogEntry
INContainingEntry.getDbId()
public long getLsnOfIN(long lastReadLsn)
getLsnOfIN
in interface INContainingEntry
public boolean logicalEquals(LogEntry other)
logicalEquals
in interface LogEntry
INs from two different environments are never considered equal,
because they have lsns that are environment-specific.
public void setLogType(LogEntryType entryType)
public LogEntryType getLogType()
public int getLastLoggedSize()
public boolean countAsObsoleteWhenLogged()
public void postLogWork(long justLoggedLsn) throws DatabaseException
DatabaseException
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |