public class LogSequenceNumber
extends java.lang.Object
Constructor | Description |
---|---|
LogSequenceNumber() |
Construct an uninitialized LogSequenceNumber.
|
LogSequenceNumber(int file,
int offset) |
Construct a LogSequenceNumber with the specified file and offset.
|
Modifier and Type | Method | Description |
---|---|---|
static int |
compare(LogSequenceNumber lsn1,
LogSequenceNumber lsn2) |
Compare two LogSequenceNumber objects.
|
int |
getFile() |
Return the file number component of the LogSequenceNumber.
|
int |
getOffset() |
Return the file offset component of the LogSequenceNumber.
|
public LogSequenceNumber(int file, int offset)
file
- The log file number.
offset
- The log file offset.public LogSequenceNumber()
public int getFile()
public int getOffset()
public static int compare(LogSequenceNumber lsn1, LogSequenceNumber lsn2)
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.
lsn1
- The first LogSequenceNumber object to be compared.
lsn2
- The second LogSequenceNumber object to be compared.
Copyright (c) 1996, 2020 Oracle and/or its affiliates. All rights reserved.