|
|||||||||
| 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.LNLogEntry
public class LNLogEntry
LNLogEntry embodies all LN transactional log entries. On disk, an LN log entry contains (pre version 6)
LN databaseid key abortLsn -- if transactional abortKnownDeleted -- if transactional txn -- if transactional (version 6) databaseid abortLsn -- if transactional abortKnownDeleted -- if transactional txn -- if transactional LN keyBefore version 6, a non-full-item read of a log entry only retrieved the node id. After version 6, the database id, transaction id and node id are all available.
| Field Summary |
|---|
| Fields inherited from class com.sleepycat.je.log.entry.BaseEntry |
|---|
entryType |
| Constructor Summary | |
|---|---|
LNLogEntry(Class<? extends LN> LNClass)
|
|
LNLogEntry(LogEntryType entryType,
LN ln,
DatabaseId dbId,
byte[] key,
long abortLsn,
boolean abortKnownDeleted,
Txn txn)
|
|
| Method Summary | |
|---|---|
Object |
clone()
|
StringBuilder |
dumpEntry(StringBuilder sb,
boolean verbose)
Print out the contents of an entry. |
void |
dumpRep(StringBuilder sb)
Dump the contents of the log entry that are interesting for replication. |
boolean |
getAbortKnownDeleted()
|
long |
getAbortLsn()
|
DatabaseId |
getDbId()
All node entries have a database ID. |
byte[] |
getDupKey()
|
byte[] |
getKey()
|
int |
getLastLoggedSize()
Returns the last logged size, saved by readEntry and writeEntry. |
LN |
getLN()
|
Object |
getMainItem()
|
long |
getNodeId()
Returns the node ID. |
int |
getSize()
#see LogEntry#getSize |
long |
getTransactionId()
|
Long |
getTxnId()
|
Txn |
getUserTxn()
|
boolean |
isDeleted()
Returns true for a deleted LN to count it immediately as obsolete. |
boolean |
logicalEquals(LogEntry other)
|
void |
postLogWork(long justLoggedLsn)
For LN entries, we need to record the latest LSN for that node with the owning transaction, within the protection of the log latch. |
void |
readEntry(LogEntryHeader header,
ByteBuffer entryBuffer,
boolean readFullItem)
Read in a log entry. |
void |
writeEntry(LogEntryHeader header,
ByteBuffer destBuffer)
Serialize this object into the buffer. |
| Methods inherited from class com.sleepycat.je.log.entry.BaseEntry |
|---|
getLogType, newInstanceOfType, 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 |
|---|
getLogType, setLogType |
| Constructor Detail |
|---|
public LNLogEntry(Class<? extends LN> LNClass)
public LNLogEntry(LogEntryType entryType,
LN ln,
DatabaseId dbId,
byte[] key,
long abortLsn,
boolean abortKnownDeleted,
Txn txn)
| Method Detail |
|---|
public void readEntry(LogEntryHeader header,
ByteBuffer entryBuffer,
boolean readFullItem)
throws DatabaseException
LogEntry
readEntry in interface LogEntryDatabaseExceptionLogEntry.readEntry(com.sleepycat.je.log.LogEntryHeader, java.nio.ByteBuffer, boolean)
public StringBuilder dumpEntry(StringBuilder sb,
boolean verbose)
LogEntry
dumpEntry in interface LogEntrydumpEntry in class BaseEntryLogEntry.dumpEntry(java.lang.StringBuilder, boolean)public void dumpRep(StringBuilder sb)
LogEntry
dumpRep in interface LogEntryLogEntry.dumpRep(java.lang.StringBuilder)public Object getMainItem()
getMainItem in interface LogEntryLogEntry.getMainItem()
public Object clone()
throws CloneNotSupportedException
clone in interface LogEntryclone in class ObjectCloneNotSupportedExceptionLogEntry.clone()public long getTransactionId()
getTransactionId in interface LogEntryLogEntry.getTransactionId()public long getNodeId()
NodeLogEntry
getNodeId in interface NodeLogEntryNodeLogEntry.getNodeId()public int getSize()
getSize in interface LogEntrypublic int getLastLoggedSize()
getLastLoggedSize in interface LogEntrygetLastLoggedSize in class BaseEntry
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 boolean isDeleted()
isDeleted in interface LogEntryisDeleted in class BaseEntryLogEntry.isDeleted()public void postLogWork(long justLoggedLsn)
postLogWork in interface LogEntrypostLogWork in class BaseEntryLogEntry.postLogWork(long)public LN getLN()
public DatabaseId getDbId()
NodeLogEntry
getDbId in interface NodeLogEntrypublic byte[] getKey()
public byte[] getDupKey()
public long getAbortLsn()
public boolean getAbortKnownDeleted()
public Long getTxnId()
public Txn getUserTxn()
public boolean logicalEquals(LogEntry other)
logicalEquals in interface LogEntryLogEntry.logicalEquals(com.sleepycat.je.log.entry.LogEntry)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||