public class VLSN extends Object implements Loggable, Comparable<VLSN>, Serializable
| Modifier and Type | Field and Description |
|---|---|
static VLSN |
FIRST_VLSN |
static int |
LOG_SIZE |
static VLSN |
NULL_VLSN |
static int |
NULL_VLSN_SEQUENCE |
static int |
UNINITIALIZED_VLSN_SEQUENCE |
| Constructor and Description |
|---|
VLSN()
Constructor for VLSNs that are read from disk.
|
VLSN(long sequence) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(VLSN other)
Compares this VLSN's sequence with the specified VLSN's sequence for
order.
|
void |
dumpLog(StringBuilder sb,
boolean verbose)
Write the object into the string buffer for log dumping.
|
boolean |
equals(Object obj) |
boolean |
equals(VLSN otherVLSN) |
boolean |
follows(VLSN other)
Return true if this VLSN's sequence directly follows the "other"
VLSN.
|
int |
getLogSize() |
VLSN |
getNext()
Return a VLSN which would follow this one.
|
VLSN |
getPrev()
Return a VLSN which would precede this one.
|
long |
getSequence() |
long |
getTransactionId() |
int |
hashCode() |
boolean |
isNull() |
static boolean |
isNull(long sequence) |
boolean |
logicalEquals(Loggable other) |
static VLSN |
min(VLSN a,
VLSN b)
Returns the smaller of two VLSNS, ignoring NULL_VLSN values if one value
is not NULL_VLSN.
|
void |
readFromLog(ByteBuffer buffer,
int entryVersion)
Initialize this object from the data in itemBuf.
|
String |
toString() |
void |
writeToLog(ByteBuffer buffer)
Serialize this object into the buffer.
|
public static final int LOG_SIZE
public static final int NULL_VLSN_SEQUENCE
public static final VLSN NULL_VLSN
public static final VLSN FIRST_VLSN
public static final int UNINITIALIZED_VLSN_SEQUENCE
public VLSN(long sequence)
public VLSN()
public final boolean equals(VLSN otherVLSN)
public long getSequence()
public final boolean isNull()
public static boolean isNull(long sequence)
public VLSN getNext()
public VLSN getPrev()
public boolean follows(VLSN other)
public int compareTo(VLSN other)
compareTo in interface Comparable<VLSN>public static VLSN min(VLSN a, VLSN b)
a - a VLSNb - another VLSNa and b, ignoring NULL_VLSN
unless both are NULL_VLSNIllegalArgumentException - if either argument is nullpublic int getLogSize()
getLogSize in interface LoggableLoggable.getLogSize()public void writeToLog(ByteBuffer buffer)
LoggablewriteToLog in interface Loggablebuffer - is the destination bufferLoggable.writeToLog(java.nio.ByteBuffer)public void readFromLog(ByteBuffer buffer, int entryVersion)
LoggablereadFromLog in interface Loggablebuffer - the source bufferentryVersion - the log version of the dataLoggable.readFromLog(java.nio.ByteBuffer, int)public void dumpLog(StringBuilder sb, boolean verbose)
LoggabledumpLog in interface Loggablesb - 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 LoggableLoggable.logicalEquals(com.sleepycat.je.log.Loggable)Copyright © 2024. All rights reserved.