|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sleepycat.je.utilint.VLSN
public class VLSN
| Field Summary | |
|---|---|
static VLSN |
FIRST_VLSN
|
static int |
LOG_SIZE
|
static VLSN |
NULL_VLSN
|
| Constructor Summary | |
|---|---|
VLSN()
Constructor for VLSNs that are read from disk. |
|
VLSN(long sequence)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int LOG_SIZE
public static final VLSN NULL_VLSN
public static final VLSN FIRST_VLSN
| Constructor Detail |
|---|
public VLSN(long sequence)
public VLSN()
| Method Detail |
|---|
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)
Loggable
writeToLog in interface Loggablebuffer - is the destination bufferLoggable.writeToLog(java.nio.ByteBuffer)
public void readFromLog(java.nio.ByteBuffer buffer,
byte entryVersion)
throws LogException
Loggable
readFromLog in interface LoggableLogExceptionLoggable.readFromLog(java.nio.ByteBuffer, byte)
public void dumpLog(java.lang.StringBuffer sb,
boolean verbose)
Loggable
dumpLog 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.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||