public class Lsn extends Object implements Comparable<Lsn>, Nullable
NULL constant.| Modifier and Type | Field and Description |
|---|---|
private byte[] |
binary |
static Lsn |
NULL |
private static String |
NULL_STRING |
private String |
string |
private int[] |
unsignedBinary |
| Modifier | Constructor and Description |
|---|---|
private |
Lsn(byte[] binary) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Lsn o)
Enables ordering of LSNs.
|
boolean |
equals(Object obj) |
byte[] |
getBinary() |
private int[] |
getUnsignedBinary() |
int |
hashCode() |
boolean |
isAvailable() |
boolean |
isBetween(Lsn from,
Lsn to)
Verifies whether the LSN falls into a LSN interval
|
String |
toString() |
static Lsn |
valueOf(byte[] lsnBinary) |
static Lsn |
valueOf(String lsnString) |
private static final String NULL_STRING
public static final Lsn NULL
private final byte[] binary
private int[] unsignedBinary
private String string
public byte[] getBinary()
public boolean isAvailable()
isAvailable in interface NullableNULLprivate int[] getUnsignedBinary()
public String toString()
public static Lsn valueOf(String lsnString)
lsnString - - textual representation of Lsnpublic static Lsn valueOf(byte[] lsnBinary)
lsnBinary - - binary representation of Lsnpublic int compareTo(Lsn o)
NULL LSN is always the smallest one.compareTo in interface Comparable<Lsn>Copyright © 2020 JBoss by Red Hat. All rights reserved.