public static class Log.Position extends java.lang.Object implements java.lang.Comparable<Log.Position>
read
ranges and
truncation
locations.Constructor and Description |
---|
Position(long value)
Creates a position identified by an integral
value . |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Log.Position that) |
boolean |
equals(java.lang.Object that) |
byte[] |
identity()
Returns an "identity" of this position, useful for serializing
to logs or across communication mediums.
|
java.lang.String |
toString() |
public Position(long value)
value
.
Positions are typically only created by the log implementation. Log users should only ever need to call this constructor in unit tests.
value
- The marker for this position in the log.public int compareTo(Log.Position that)
compareTo
in interface java.lang.Comparable<Log.Position>
public boolean equals(java.lang.Object that)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public byte[] identity()