Package io.debezium.connector.mysql
Class GtidSet.UUIDSet
- java.lang.Object
-
- io.debezium.connector.mysql.GtidSet.UUIDSet
-
- Enclosing class:
- GtidSet
@Immutable public static class GtidSet.UUIDSet extends Object
A range of GTIDs for a single server with a specific Uuid.
-
-
Field Summary
Fields Modifier and Type Field Description private LinkedList<GtidSet.Interval>intervalsprivate Stringuuid
-
Constructor Summary
Constructors Modifier Constructor Description protectedUUIDSet(com.github.shyiko.mysql.binlog.GtidSet.UUIDSet uuidSet)protectedUUIDSet(String uuid, GtidSet.Interval interval)protectedUUIDSet(String uuid, List<GtidSet.Interval> intervals)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GtidSet.UUIDSetasIntervalBeginning()booleancontains(long transactionId)booleanequals(Object obj)List<GtidSet.Interval>getIntervals()Get the intervals of transaction numbers.StringgetUUID()Get the Uuid for the server that generated the GTIDs.inthashCode()booleanisContainedWithin(GtidSet.UUIDSet other)Determine if the set of transaction numbers from this server is completely within the set of transaction numbers from the set of transaction numbers in the supplied set.GtidSet.UUIDSetsubtract(GtidSet.UUIDSet other)StringtoString()
-
-
-
Field Detail
-
uuid
private final String uuid
-
intervals
private final LinkedList<GtidSet.Interval> intervals
-
-
Constructor Detail
-
UUIDSet
protected UUIDSet(com.github.shyiko.mysql.binlog.GtidSet.UUIDSet uuidSet)
-
UUIDSet
protected UUIDSet(String uuid, GtidSet.Interval interval)
-
UUIDSet
protected UUIDSet(String uuid, List<GtidSet.Interval> intervals)
-
-
Method Detail
-
asIntervalBeginning
public GtidSet.UUIDSet asIntervalBeginning()
-
getUUID
public String getUUID()
Get the Uuid for the server that generated the GTIDs.- Returns:
- the server's Uuid; never null
-
getIntervals
public List<GtidSet.Interval> getIntervals()
Get the intervals of transaction numbers.- Returns:
- the immutable transaction intervals; never null
-
isContainedWithin
public boolean isContainedWithin(GtidSet.UUIDSet other)
Determine if the set of transaction numbers from this server is completely within the set of transaction numbers from the set of transaction numbers in the supplied set.- Parameters:
other- the set to compare with this set- Returns:
trueif this server's transaction numbers are a subset of the transaction numbers of the supplied set, or false otherwise
-
contains
public boolean contains(long transactionId)
-
subtract
public GtidSet.UUIDSet subtract(GtidSet.UUIDSet other)
-
-