|
|||||||||
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 |
Constructor Summary | |
---|---|
SingleItemEntry(Class<?> logClass)
Construct a log entry for reading. |
|
SingleItemEntry(LogEntryType entryType,
Loggable item)
Construct a log entry for writing. |
Method Summary | |
---|---|
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. |
DatabaseId |
getDbId()
|
Object |
getMainItem()
|
int |
getSize()
|
long |
getTransactionId()
|
boolean |
logicalEquals(LogEntry other)
|
void |
readEntry(EnvironmentImpl envImpl,
LogEntryHeader header,
ByteBuffer entryBuffer)
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 |
---|
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 SingleItemEntry(Class<?> logClass)
public SingleItemEntry(LogEntryType entryType, Loggable item)
Method Detail |
---|
public void readEntry(EnvironmentImpl envImpl, LogEntryHeader header, ByteBuffer entryBuffer)
LogEntry
readEntry
in interface LogEntry
LogEntry.readEntry(com.sleepycat.je.dbi.EnvironmentImpl, com.sleepycat.je.log.LogEntryHeader, java.nio.ByteBuffer)
public StringBuilder dumpEntry(StringBuilder sb, boolean verbose)
LogEntry
dumpEntry
in interface LogEntry
dumpEntry
in class BaseEntry
LogEntry.dumpEntry(java.lang.StringBuilder, boolean)
public void dumpRep(StringBuilder sb)
LogEntry
dumpRep
in interface LogEntry
LogEntry.dumpRep(java.lang.StringBuilder)
public Object getMainItem()
getMainItem
in interface LogEntry
LogEntry.getMainItem()
public long getTransactionId()
getTransactionId
in interface LogEntry
LogEntry.getTransactionId()
public DatabaseId getDbId()
getDbId
in interface LogEntry
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 boolean logicalEquals(LogEntry other)
logicalEquals
in interface LogEntry
LogEntry.logicalEquals(com.sleepycat.je.log.entry.LogEntry)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |