|
|||||||||
| 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 |
| Constructor Summary | |
|---|---|
INLogEntry(Class<? extends IN> INClass)
Construct a log entry for reading. |
|
INLogEntry(IN in)
Construct a log entry for writing to the log. |
|
| Method Summary | |
|---|---|
Object |
clone()
|
StringBuilder |
dumpEntry(StringBuilder sb,
boolean verbose)
Print out the contents of an entry. |
void |
dumpRep(StringBuilder sb)
Never replicated. |
DatabaseId |
getDbId()
All node entries have a database ID. |
IN |
getIN(EnvironmentImpl env)
|
long |
getLsnOfIN(long lastReadLsn)
|
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,
ByteBuffer entryBuffer,
boolean readFullItem)
Read in an IN entry. |
void |
writeEntry(LogEntryHeader header,
ByteBuffer destBuffer)
Serialize this object into the buffer. |
| Methods inherited from class com.sleepycat.je.log.entry.BaseEntry |
|---|
getLastLoggedSize, getLogType, isDeleted, newInstanceOfType, 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 |
|---|
getLastLoggedSize, getLogType, isDeleted, postLogWork, setLogType |
| Constructor Detail |
|---|
public INLogEntry(Class<? extends IN> INClass)
public INLogEntry(IN in)
| Method Detail |
|---|
public void readEntry(LogEntryHeader header,
ByteBuffer entryBuffer,
boolean readFullItem)
throws DatabaseException
readEntry in interface LogEntryDatabaseExceptionpublic long getObsoleteLsn()
public StringBuilder dumpEntry(StringBuilder sb,
boolean verbose)
dumpEntry in interface LogEntrydumpEntry in class BaseEntrypublic void dumpRep(StringBuilder sb)
dumpRep in interface LogEntrypublic Object getMainItem()
getMainItem in interface LogEntry
public Object clone()
throws CloneNotSupportedException
clone in interface LogEntryclone in class ObjectCloneNotSupportedExceptionpublic long getTransactionId()
getTransactionId in interface LogEntryLogEntry.getTransactionId()public int getSize()
getSize in interface LogEntry
public void writeEntry(LogEntryHeader header,
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)
getIN in interface INContainingEntrypublic 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 | ||||||||