public class INLogEntry extends BaseEntry implements LogEntry, INContainingEntry
IN database id obsolete LSN -- in version 2 (version 6) database id obsolete LSN IN
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.StringBuilder |
dumpEntry(java.lang.StringBuilder sb,
boolean verbose)
Print out the contents of an entry.
|
void |
dumpRep(java.lang.StringBuilder sb)
Never replicated.
|
DatabaseId |
getDbId() |
IN |
getIN(DatabaseImpl dbImpl) |
java.lang.Object |
getMainItem() |
long |
getNodeId() |
long |
getPrevDeltaLsn() |
long |
getPrevFullLsn() |
int |
getSize() |
long |
getTransactionId() |
boolean |
logicalEquals(LogEntry other) |
void |
readEntry(EnvironmentImpl envImpl,
LogEntryHeader header,
java.nio.ByteBuffer entryBuffer)
Read in an IN entry.
|
void |
writeEntry(LogEntryHeader header,
java.nio.ByteBuffer destBuffer)
Serialize this object into the buffer.
|
clone, getLastLoggedSize, getLogType, getNoArgsConstructor, getResolvedItem, isDeleted, newInstanceOfType, newInstanceOfType, postFetchInit, postLogWork, setLogType, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clone, getLastLoggedSize, getLogType, getResolvedItem, isDeleted, postLogWork, setLogType
public INLogEntry(java.lang.Class<? extends IN> INClass)
public INLogEntry(IN in)
public void readEntry(EnvironmentImpl envImpl, LogEntryHeader header, java.nio.ByteBuffer entryBuffer)
public long getPrevFullLsn()
getPrevFullLsn
in interface INContainingEntry
public long getPrevDeltaLsn()
getPrevDeltaLsn
in interface INContainingEntry
public java.lang.StringBuilder dumpEntry(java.lang.StringBuilder sb, boolean verbose)
public void dumpRep(java.lang.StringBuilder sb)
public java.lang.Object getMainItem()
getMainItem
in interface LogEntry
public long getTransactionId()
getTransactionId
in interface LogEntry
LogEntry.getTransactionId()
public int getSize()
public void writeEntry(LogEntryHeader header, java.nio.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.
Copyright (c) 2004-2012 Oracle. All rights reserved.