|
|||||||||
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(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)
|
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. |
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(Object obj)
equals
in class Object
public final boolean equals(VLSN otherVLSN)
public int hashCode()
hashCode
in class Object
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 int getLogSize()
getLogSize
in interface Loggable
Loggable.getLogSize()
public void writeToLog(ByteBuffer buffer)
Loggable
writeToLog
in interface Loggable
buffer
- is the destination bufferLoggable.writeToLog(java.nio.ByteBuffer)
public void readFromLog(ByteBuffer buffer, int entryVersion)
Loggable
readFromLog
in interface Loggable
Loggable.readFromLog(java.nio.ByteBuffer, int)
public void dumpLog(StringBuilder sb, boolean verbose)
Loggable
dumpLog
in interface Loggable
sb
- destination string bufferverbose
- if true, dump the full, verbose versionLoggable.dumpLog(java.lang.StringBuilder, boolean)
public long getTransactionId()
getTransactionId
in interface Loggable
Loggable.getTransactionId()
public boolean logicalEquals(Loggable other)
logicalEquals
in interface Loggable
Loggable.logicalEquals(com.sleepycat.je.log.Loggable)
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |