|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sleepycat.je.log.entry.BaseEntry
com.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
| Field Summary |
|---|
| Fields inherited from class com.sleepycat.je.log.entry.BaseEntry |
|---|
entryType, logClass |
| 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()
|
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)
|
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 |
readEntry(LogEntryHeader header,
java.nio.ByteBuffer entryBuffer,
boolean readFullItem)
Read in an IN entry. |
void |
writeEntry(LogEntryHeader header,
java.nio.ByteBuffer destBuffer)
Serialize this object into the buffer. |
| Methods inherited from class com.sleepycat.je.log.entry.BaseEntry |
|---|
countAsObsoleteWhenLogged, getLastLoggedSize, getLogType, postLogWork, setLogType, toString |
| 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 LogEntryDatabaseExceptionpublic long getObsoleteLsn()
public java.lang.StringBuffer dumpEntry(java.lang.StringBuffer sb,
boolean verbose)
dumpEntry in interface LogEntrydumpEntry in class BaseEntrypublic java.lang.Object getMainItem()
getMainItem in interface LogEntry
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface LogEntryclone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic long getTransactionId()
getTransactionId in interface LogEntryLogEntry.getTransactionId()public int getSize()
getSize in interface LogEntry
public void writeEntry(LogEntryHeader header,
java.nio.ByteBuffer destBuffer)
LogEntry
writeEntry in interface LogEntrydestBuffer - is the destination bufferLogEntry.writeEntry(com.sleepycat.je.log.LogEntryHeader, java.nio.ByteBuffer)
public IN getIN(EnvironmentImpl env)
throws DatabaseException
getIN in interface INContainingEntryDatabaseExceptionpublic long getNodeId()
NodeLogEntry
getNodeId in interface NodeLogEntryNodeLogEntry.getNodeId()public DatabaseId getDbId()
NodeLogEntry
getDbId in interface INContainingEntrygetDbId in interface NodeLogEntryINContainingEntry.getDbId()public long getLsnOfIN(long lastReadLsn)
getLsnOfIN in interface INContainingEntrypublic boolean logicalEquals(LogEntry other)
logicalEquals in interface LogEntryINs from two different environments are never considered equal,
because they have lsns that are environment-specific.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||