| 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.StringBuffer sb,
boolean verbose)
Write the object into the string buffer for log dumping.
|
boolean |
equals(java.lang.Object obj) |
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 |
logicalEquals(Loggable other) |
void |
readFromLog(java.nio.ByteBuffer buffer,
byte 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 int hashCode()
hashCode in class java.lang.Objectpublic long getSequence()
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,
byte entryVersion)
throws LogException
LoggablereadFromLog in interface LoggableLogExceptionLoggable.readFromLog(java.nio.ByteBuffer, byte)public void dumpLog(java.lang.StringBuffer sb,
boolean verbose)
LoggabledumpLog in interface Loggablesb - 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 LoggableLoggable.logicalEquals(com.sleepycat.je.log.Loggable)public java.lang.String toString()
toString in class java.lang.ObjectCopyright (c) 2004,2008 Oracle. All rights reserved.