public final class LogSequenceNumber extends Object implements Comparable<LogSequenceNumber>
Modifier and Type | Field and Description |
---|---|
static LogSequenceNumber |
INVALID_LSN
Zero is used indicate an invalid pointer.
|
Modifier and Type | Method and Description |
---|---|
long |
asLong() |
String |
asString() |
int |
compareTo(LogSequenceNumber o) |
boolean |
equals(@Nullable Object o) |
int |
hashCode() |
String |
toString() |
static LogSequenceNumber |
valueOf(long value) |
static LogSequenceNumber |
valueOf(String strValue)
Create LSN instance by string represent LSN.
|
public static final LogSequenceNumber INVALID_LSN
public static LogSequenceNumber valueOf(long value)
value
- numeric represent position in the write-ahead log streampublic static LogSequenceNumber valueOf(String strValue)
strValue
- not null string as two hexadecimal numbers of up to 8 digits each, separated by
a slash. For example 16/3002D50
, 0/15D68C50
INVALID_LSN
public long asLong()
public String asString()
16/3002D50
, 0/15D68C50
public int compareTo(LogSequenceNumber o)
compareTo
in interface Comparable<LogSequenceNumber>
Copyright © 1997-2020 PostgreSQL Global Development Group. All Rights Reserved.