| Modifier and Type | Field and Description |
|---|---|
| public static final LogSequenceNumber | INVALID_LSN
Zero is used indicate an invalid pointer. |
| private final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public String | Returns: String represent position in the write-ahead log stream as two hexadecimal numbers of up to 8 digits each, separated by a slash. For example16/3002D50, 0/15D68C50
|
| public int | compareTo(LogSequenceNumber
the object to be compared. o)Implements java. Compares this object with the specified object for order. |
| public boolean | equals(@Nullable Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public String | |
| public static LogSequenceNumber | Returns: not null LSN instancenumeric represent position in the write-ahead log stream value)
|
| public static LogSequenceNumber | Returns: not null LSN instance where if specified string represent have not valid formLogSequenceNumber#INVALID_LSNnot null string as two hexadecimal numbers of up to 8 digits each, separated by
a slash. For example strValue)16/3002D50, 0/15D68C50Create LSN instance by string represent LSN. |
| INVALID_LSN | back to summary |
|---|---|
| public static final LogSequenceNumber INVALID_LSN Zero is used indicate an invalid pointer. Bootstrap skips the first possible WAL segment, initializing the first WAL page at XLOG_SEG_SIZE, so no XLOG record can begin at zero. | |
| value | back to summary |
|---|---|
| private final long value | |
| LogSequenceNumber | back to summary |
|---|---|
| private LogSequenceNumber(long value) | |
| asLong | back to summary |
|---|---|
public long asLong()
| |
| asString | back to summary |
|---|---|
public String asString()
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(LogSequenceNumber o) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| equals | back to summary |
|---|---|
| public boolean equals(@Nullable Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| valueOf | back to summary |
|---|---|
public static LogSequenceNumber valueOf(long value)
| |
| valueOf | back to summary |
|---|---|
| public static LogSequenceNumber valueOf(String strValue) Create LSN instance by string represent LSN.
| |