|
|||||||||
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:
ln databaseid key abortLsn -- if transactional abortKnownDeleted -- if transactional txn -- if transactional
Field Summary |
---|
Fields inherited from class com.sleepycat.je.log.entry.BaseEntry |
---|
entryType, logClass |
Constructor Summary | |
---|---|
LNLogEntry(java.lang.Class LNClass)
|
|
LNLogEntry(LogEntryType entryType,
LN ln,
DatabaseId dbId,
byte[] key,
long abortLsn,
boolean abortKnownDeleted,
Txn txn)
|
Method Summary | |
---|---|
java.lang.Object |
clone()
|
boolean |
countAsObsoleteWhenLogged()
Returns true for a deleted LN to count it immediately as obsolete. |
java.lang.StringBuffer |
dumpEntry(java.lang.StringBuffer sb,
boolean verbose)
Print out the contents of an entry. |
boolean |
getAbortKnownDeleted()
|
long |
getAbortLsn()
|
DatabaseId |
getDbId()
|
byte[] |
getDupKey()
|
byte[] |
getKey()
|
LN |
getLN()
|
java.lang.Object |
getMainItem()
|
long |
getNodeId()
Returns the node ID. |
int |
getSize()
|
long |
getTransactionId()
|
java.lang.Long |
getTxnId()
|
Txn |
getUserTxn()
|
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,
java.nio.ByteBuffer entryBuffer,
boolean readFullItem)
Read in an log entry. |
void |
setLastLoggedSize(int size)
By default, do nothing. |
void |
writeEntry(LogEntryHeader header,
java.nio.ByteBuffer destBuffer)
Serialize this object into the buffer. |
Methods inherited from class com.sleepycat.je.log.entry.BaseEntry |
---|
getLogType, setLogType |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.sleepycat.je.log.entry.LogEntry |
---|
getLogType, setLogType |
Constructor Detail |
---|
public LNLogEntry(java.lang.Class LNClass)
public LNLogEntry(LogEntryType entryType, LN ln, DatabaseId dbId, byte[] key, long abortLsn, boolean abortKnownDeleted, Txn txn)
Method Detail |
---|
public void readEntry(LogEntryHeader header, java.nio.ByteBuffer entryBuffer, boolean readFullItem) throws DatabaseException
LogEntry
readEntry
in interface LogEntry
DatabaseException
LogEntry.readEntry(com.sleepycat.je.log.LogEntryHeader, java.nio.ByteBuffer, boolean)
public java.lang.StringBuffer dumpEntry(java.lang.StringBuffer sb, boolean verbose)
LogEntry
dumpEntry
in interface LogEntry
LogEntry.dumpEntry(java.lang.StringBuffer, boolean)
public java.lang.Object getMainItem()
getMainItem
in interface LogEntry
LogEntry.getMainItem()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface LogEntry
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
LogEntry.clone()
public long getTransactionId()
getTransactionId
in interface LogEntry
LogEntry.getTransactionId()
public long getNodeId()
NodeLogEntry
getNodeId
in interface NodeLogEntry
NodeLogEntry.getNodeId()
public int getSize()
getSize
in interface LogEntry
public void setLastLoggedSize(int size)
BaseEntry
setLastLoggedSize
in interface LogEntry
setLastLoggedSize
in class BaseEntry
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 boolean countAsObsoleteWhenLogged()
countAsObsoleteWhenLogged
in interface LogEntry
countAsObsoleteWhenLogged
in class BaseEntry
LogEntry.countAsObsoleteWhenLogged()
public void postLogWork(long justLoggedLsn) throws DatabaseException
postLogWork
in interface LogEntry
postLogWork
in class BaseEntry
DatabaseException
LogEntry.postLogWork(long)
public LN getLN()
public DatabaseId getDbId()
public byte[] getKey()
public byte[] getDupKey()
public long getAbortLsn()
public boolean getAbortKnownDeleted()
public java.lang.Long getTxnId()
public Txn getUserTxn()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |