| 
 | 
  | 
Berkeley DB version 4.4.20  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sleepycat.db.LogSequenceNumber
The LogSequenceNumber object is a log sequence number which specifies a unique location in a log file. A LogSequenceNumber consists of two unsigned 32-bit integers -- one specifies the log file number, and the other specifies the offset in the log file.
| Constructor Summary | |
LogSequenceNumber()
Construct an uninitialized LogSequenceNumber.  | 
|
LogSequenceNumber(int file,
                  int offset)
Construct a LogSequenceNumber with the specified file and offset.  | 
|
| Method Summary | |
static int | 
compare(LogSequenceNumber lsn0,
        LogSequenceNumber lsn1)
Compare two LogSequenceNumber objects.  | 
 int | 
getFile()
Return the file number component of the LogSequenceNumber.  | 
 int | 
getOffset()
Return the file offset component of the LogSequenceNumber.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public LogSequenceNumber(int file,
                         int offset)
file - The log file number.
    offset - The log file offset.public LogSequenceNumber()
| Method Detail | 
public int getFile()
public int getOffset()
public static int compare(LogSequenceNumber lsn0,
                          LogSequenceNumber lsn1)
This method returns 0 if the two LogSequenceNumber objects are equal, 1 if lsn0 is greater than lsn1, and -1 if lsn0 is less than lsn1.
lsn0 - One of the LogSequenceNumber objects to be compared.
    lsn1 - One of the LogSequenceNumber objects to be compared.
    
  | 
Berkeley DB version 4.4.20  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||