public class EmptyLogEntry extends Object implements Loggable
A single byte is actually written, but this is only to satisfy non-null buffer dependencies in ChecksumValidator and file readers.
| Constructor and Description |
|---|
EmptyLogEntry() |
| Modifier and Type | Method and Description |
|---|---|
void |
dumpLog(StringBuilder sb,
boolean verbose)
Write the object into the string buffer for log dumping.
|
int |
getLogSize() |
long |
getTransactionId() |
boolean |
logicalEquals(Loggable other)
Always return false, this item should never be compared.
|
void |
readFromLog(ByteBuffer logBuffer,
int entryVersion)
Initialize this object from the data in itemBuf.
|
void |
writeToLog(ByteBuffer logBuffer)
Serialize this object into the buffer.
|
public int getLogSize()
getLogSize in interface Loggablepublic void writeToLog(ByteBuffer logBuffer)
LoggablewriteToLog in interface LoggablelogBuffer - is the destination bufferpublic void readFromLog(ByteBuffer logBuffer, int entryVersion)
LoggablereadFromLog in interface LoggablelogBuffer - the source bufferentryVersion - the log version of the datapublic void dumpLog(StringBuilder sb, boolean verbose)
Loggablepublic boolean logicalEquals(Loggable other)
logicalEquals in interface Loggablepublic long getTransactionId()
getTransactionId in interface LoggableCopyright © 2024. All rights reserved.