Package io.debezium.connector.mysql
Class GtidSet.Interval
java.lang.Object
io.debezium.connector.mysql.GtidSet.Interval
- All Implemented Interfaces:
Comparable<GtidSet.Interval>
- Enclosing class:
- GtidSet
@Immutable
public static class GtidSet.Interval
extends Object
implements Comparable<GtidSet.Interval>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(GtidSet.Interval that) boolean
contains
(long transactionId) boolean
contains
(GtidSet.Interval other) boolean
long
getEnd()
Get the ending transaction number in this interval.long
getStart()
Get the starting transaction number in this interval.int
hashCode()
boolean
Determine if this interval is completely within the supplied interval.boolean
nonintersecting
(GtidSet.Interval other) remove
(GtidSet.Interval other) removeAll
(List<GtidSet.Interval> otherIntervals) toString()
-
Field Details
-
start
private final long start -
end
private final long end
-
-
Constructor Details
-
Interval
public Interval(long start, long end)
-
-
Method Details
-
getStart
public long getStart()Get the starting transaction number in this interval.- Returns:
- this interval's first transaction number
-
getEnd
public long getEnd()Get the ending transaction number in this interval.- Returns:
- this interval's last transaction number
-
isContainedWithin
Determine if this interval is completely within the supplied interval. -
contains
public boolean contains(long transactionId) -
contains
-
nonintersecting
-
remove
-
removeAll
-
compareTo
- Specified by:
compareTo
in interfaceComparable<GtidSet.Interval>
-
hashCode
public int hashCode() -
equals
-
toString
-