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.Object
public int hashCode()
hashCode
in class java.lang.Object
public 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 Loggable
Loggable.getLogSize()
public void writeToLog(java.nio.ByteBuffer buffer)
Loggable
writeToLog
in interface Loggable
buffer
- is the destination bufferLoggable.writeToLog(java.nio.ByteBuffer)
public void readFromLog(java.nio.ByteBuffer buffer, byte entryVersion) throws LogException
Loggable
readFromLog
in interface Loggable
LogException
Loggable.readFromLog(java.nio.ByteBuffer, byte)
public void dumpLog(java.lang.StringBuffer sb, boolean verbose)
Loggable
dumpLog
in interface Loggable
sb
- destination string bufferverbose
- if true, dump the full, verbose versionLoggable.dumpLog(java.lang.StringBuffer, 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 java.lang.String toString()
toString
in class java.lang.Object