public class INLogEntry extends BaseEntry implements LogEntry, NodeLogEntry, INContainingEntry
IN
database id
obsolete LSN -- in version 2
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
countAsObsoleteWhenLogged, getLastLoggedSize, getLogType, postLogWork, setLogType, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcountAsObsoleteWhenLogged, getLastLoggedSize, getLogType, postLogWork, setLogTypepublic INLogEntry(java.lang.Class<? extends IN> INClass)
public INLogEntry(IN in)
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)
public java.lang.Object getMainItem()
getMainItem in interface LogEntrypublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
public long getTransactionId()
getTransactionId in interface LogEntryLogEntry.getTransactionId()public int getSize()
public void writeEntry(LogEntryHeader header, java.nio.ByteBuffer destBuffer)
LogEntrywriteEntry 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()
NodeLogEntrygetNodeId in interface NodeLogEntryNodeLogEntry.getNodeId()public DatabaseId getDbId()
NodeLogEntrygetDbId 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.Copyright (c) 2004,2008 Oracle. All rights reserved.