|
|||||||||
| 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 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()
|
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()
|
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, getLogType, postLogWork, setLastLoggedSize, setLogType |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sleepycat.je.log.entry.LogEntry |
|---|
countAsObsoleteWhenLogged, getLogType, postLogWork, setLastLoggedSize, setLogType |
| Constructor Detail |
|---|
public INLogEntry(java.lang.Class 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 LogEntrypublic 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()
getDbId in interface INContainingEntryINContainingEntry.getDbId()public long getLsnOfIN(long lastReadLsn)
getLsnOfIN in interface INContainingEntry
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||