public class PackedOffsets extends Object implements Loggable
| Constructor and Description |
|---|
PackedOffsets()
Creates an empty object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dumpLog(StringBuilder 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(ByteBuffer buf,
int entryVersion)
Initialize this object from the data in itemBuf.
|
String |
toString() |
void |
writeToLog(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(ByteBuffer buf)
LoggablewriteToLog in interface Loggablebuf - is the destination bufferLoggable.writeToLog(java.nio.ByteBuffer)public void readFromLog(ByteBuffer buf, int entryVersion)
LoggablereadFromLog in interface Loggablebuf - the source bufferentryVersion - the log version of the dataLoggable.readFromLog(java.nio.ByteBuffer, int)public void dumpLog(StringBuilder buf, boolean verbose)
LoggabledumpLog in interface Loggablebuf - destination string bufferverbose - if true, dump the full, verbose versionLoggable.dumpLog(java.lang.StringBuilder, 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.Copyright © 2024. All rights reserved.