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>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(GtidSet.Interval that)booleancontains(long transactionId)booleanequals(Object obj)longgetEnd()Get the ending transaction number in this interval.longgetStart()Get the starting transaction number in this interval.inthashCode()booleanisContainedWithin(GtidSet.Interval other)Determine if this interval is completely within the supplied interval.StringtoString()
-
-
-
Constructor Detail
-
Interval
public Interval(long start, long end)
-
Interval
private Interval(com.google.common.collect.Range<Long> range)
-
-
Method Detail
-
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
public boolean isContainedWithin(GtidSet.Interval other)
Determine if this interval is completely within the supplied interval.
-
contains
public boolean contains(long transactionId)
-
compareTo
public int compareTo(GtidSet.Interval that)
- Specified by:
compareToin interfaceComparable<GtidSet.Interval>
-
-