|
|||||||||
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 LogEntry
DatabaseException
public long getObsoleteLsn()
public StringBuilder dumpEntry(StringBuilder sb, boolean verbose)
dumpEntry
in interface LogEntry
dumpEntry
in class BaseEntry
public void dumpRep(StringBuilder sb)
dumpRep
in interface LogEntry
public Object getMainItem()
getMainItem
in interface LogEntry
public Object clone() throws CloneNotSupportedException
clone
in interface LogEntry
clone
in class Object
CloneNotSupportedException
public long getTransactionId()
getTransactionId
in interface LogEntry
LogEntry.getTransactionId()
public int getSize()
getSize
in interface LogEntry
public void writeEntry(LogEntryHeader header, 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)
getIN
in interface INContainingEntry
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |