|
|||||||||
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 (pre version 6)
IN database id obsolete LSN -- in version 2 (version 6) database id obsolete LSN IN
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 | |
---|---|
StringBuilder |
dumpEntry(StringBuilder sb,
boolean verbose)
Print out the contents of an entry. |
void |
dumpRep(StringBuilder sb)
Never replicated. |
DatabaseId |
getDbId()
|
IN |
getIN(DatabaseImpl dbImpl)
|
Object |
getMainItem()
|
long |
getNodeId()
|
long |
getPrevDeltaLsn()
|
long |
getPrevFullLsn()
|
int |
getSize()
|
long |
getTransactionId()
|
boolean |
logicalEquals(LogEntry other)
|
void |
readEntry(EnvironmentImpl envImpl,
LogEntryHeader header,
ByteBuffer entryBuffer)
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 |
---|
clone, getLastLoggedSize, getLogType, getNoArgsConstructor, getResolvedItem, isDeleted, newInstanceOfType, newInstanceOfType, postFetchInit, 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 |
---|
clone, getLastLoggedSize, getLogType, getResolvedItem, isDeleted, postLogWork, setLogType |
Constructor Detail |
---|
public INLogEntry(Class<? extends IN> INClass)
public INLogEntry(IN in)
Method Detail |
---|
public void readEntry(EnvironmentImpl envImpl, LogEntryHeader header, ByteBuffer entryBuffer)
readEntry
in interface LogEntry
public long getPrevFullLsn()
getPrevFullLsn
in interface INContainingEntry
public long getPrevDeltaLsn()
getPrevDeltaLsn
in interface INContainingEntry
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 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(DatabaseImpl dbImpl)
getIN
in interface INContainingEntry
public long getNodeId()
public DatabaseId getDbId()
getDbId
in interface INContainingEntry
getDbId
in interface LogEntry
INContainingEntry.getDbId()
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 |