public class VLSN extends java.lang.Object implements Loggable, java.lang.Comparable<VLSN>, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static VLSN |
FIRST_VLSN |
static int |
LOG_SIZE |
static VLSN |
NULL_VLSN |
| 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(java.lang.StringBuilder sb,
boolean verbose)
Write the object into the string buffer for log dumping.
|
boolean |
equals(java.lang.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) |
void |
readFromLog(java.nio.ByteBuffer buffer,
int entryVersion)
Initialize this object from the data in itemBuf.
|
java.lang.String |
toString() |
void |
writeToLog(java.nio.ByteBuffer buffer)
Serialize this object into the buffer.
|
public static final int LOG_SIZE
public static final VLSN NULL_VLSN
public static final VLSN FIRST_VLSN
public VLSN(long sequence)
public VLSN()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic final boolean equals(VLSN otherVLSN)
public int hashCode()
hashCode in class java.lang.Objectpublic 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 java.lang.Comparable<VLSN>public int getLogSize()
getLogSize in interface LoggableLoggable.getLogSize()public void writeToLog(java.nio.ByteBuffer buffer)
LoggablewriteToLog in interface Loggablebuffer - is the destination bufferLoggable.writeToLog(java.nio.ByteBuffer)public void readFromLog(java.nio.ByteBuffer buffer,
int entryVersion)
LoggablereadFromLog in interface LoggableLoggable.readFromLog(java.nio.ByteBuffer, int)public void dumpLog(java.lang.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)public java.lang.String toString()
toString in class java.lang.ObjectCopyright (c) 2004-2012 Oracle. All rights reserved.