|
|||||||||
| 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.SingleItemEntry
public class SingleItemEntry
This class embodies log entries that have a single loggable item. On disk, an entry contains:
the Loggable item
| Field Summary |
|---|
| Fields inherited from class com.sleepycat.je.log.entry.BaseEntry |
|---|
entryType, logClass |
| Constructor Summary | |
|---|---|
SingleItemEntry(java.lang.Class logClass)
Construct a log entry for reading. |
|
SingleItemEntry(LogEntryType entryType,
Loggable item)
Construct a log entry for writing. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
java.lang.StringBuffer |
dumpEntry(java.lang.StringBuffer sb,
boolean verbose)
Print out the contents of an entry. |
java.lang.Object |
getMainItem()
|
int |
getSize()
|
long |
getTransactionId()
|
void |
readEntry(LogEntryHeader header,
java.nio.ByteBuffer entryBuffer,
boolean readFullItem)
Read in an log entry. |
void |
writeEntry(LogEntryHeader header,
java.nio.ByteBuffer destBuffer)
Serialize this object into the buffer. |
| Methods inherited from class com.sleepycat.je.log.entry.BaseEntry |
|---|
countAsObsoleteWhenLogged, getLogType, postLogWork, setLastLoggedSize, 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 |
|---|
countAsObsoleteWhenLogged, getLogType, postLogWork, setLastLoggedSize, setLogType |
| Constructor Detail |
|---|
public SingleItemEntry(java.lang.Class logClass)
public SingleItemEntry(LogEntryType entryType,
Loggable item)
| Method Detail |
|---|
public void readEntry(LogEntryHeader header,
java.nio.ByteBuffer entryBuffer,
boolean readFullItem)
throws DatabaseException
LogEntry
readEntry in interface LogEntryDatabaseExceptionLogEntry.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 LogEntryLogEntry.dumpEntry(java.lang.StringBuffer, boolean)public java.lang.Object getMainItem()
getMainItem in interface LogEntryLogEntry.getMainItem()
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface LogEntryclone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionLogEntry.clone()public long getTransactionId()
getTransactionId in interface LogEntryLogEntry.getTransactionId()public int getSize()
getSize in interface LogEntry
public void writeEntry(LogEntryHeader header,
java.nio.ByteBuffer destBuffer)
LogEntry
writeEntry in interface LogEntrydestBuffer - is the destination bufferLogEntry.writeEntry(com.sleepycat.je.log.LogEntryHeader, java.nio.ByteBuffer)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||