public class PackedOffsets extends java.lang.Object implements Loggable
| Constructor and Description |
|---|
PackedOffsets()
Creates an empty object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dumpLog(java.lang.StringBuffer buf,
boolean verbose)
Write the object into the string buffer for log dumping.
|
int |
getExtraMemorySize()
Return the extra memory used by this object when the pack() method has
been called to allocate the data array.
|
int |
getLogSize() |
long |
getTransactionId()
Never called.
|
boolean |
logicalEquals(Loggable other) |
void |
pack(long[] offsets)
Packs the given offsets, replacing any offsets stored in this object.
|
void |
readFromLog(java.nio.ByteBuffer buf,
byte entryVersion)
Initialize this object from the data in itemBuf.
|
java.lang.String |
toString() |
void |
writeToLog(java.nio.ByteBuffer buf)
Serialize this object into the buffer.
|
public void pack(long[] offsets)
public int getExtraMemorySize()
public int getLogSize()
getLogSize in interface LoggableLoggable.getLogSize()public void writeToLog(java.nio.ByteBuffer buf)
LoggablewriteToLog in interface Loggablebuf - is the destination bufferLoggable.writeToLog(java.nio.ByteBuffer)public void readFromLog(java.nio.ByteBuffer buf,
byte entryVersion)
LoggablereadFromLog in interface LoggableLoggable.readFromLog(java.nio.ByteBuffer, byte)public void dumpLog(java.lang.StringBuffer buf,
boolean verbose)
LoggabledumpLog in interface Loggablebuf - destination string bufferverbose - if true, dump the full, verbose versionLoggable.dumpLog(java.lang.StringBuffer, boolean)public long getTransactionId()
getTransactionId in interface LoggableLoggable.getTransactionId()public boolean logicalEquals(Loggable other)
logicalEquals in interface LoggableAlways return false, this item should never be compared.public java.lang.String toString()
toString in class java.lang.Object