Package io.debezium.connector.mysql
Class GtidSet.UUIDSet
java.lang.Object
io.debezium.connector.mysql.GtidSet.UUIDSet
- Enclosing class:
- GtidSet
A range of GTIDs for a single server with a specific Uuid.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
UUIDSet
(com.github.shyiko.mysql.binlog.GtidSet.UUIDSet uuidSet) protected
UUIDSet
(String uuid, GtidSet.Interval interval) protected
UUIDSet
(String uuid, List<GtidSet.Interval> intervals) -
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(long transactionId) boolean
Get the intervals of transaction numbers.getUUID()
Get the Uuid for the server that generated the GTIDs.int
hashCode()
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.subtract
(GtidSet.UUIDSet other) toString()
-
Field Details
-
uuid
-
intervals
-
-
Constructor Details
-
UUIDSet
protected UUIDSet(com.github.shyiko.mysql.binlog.GtidSet.UUIDSet uuidSet) -
UUIDSet
-
UUIDSet
-
-
Method Details
-
asIntervalBeginning
-
getUUID
Get the Uuid for the server that generated the GTIDs.- Returns:
- the server's Uuid; never null
-
getIntervals
Get the intervals of transaction numbers.- Returns:
- the immutable transaction intervals; never null
-
isContainedWithin
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:
true
if 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) -
hashCode
public int hashCode() -
equals
-
toString
-
subtract
-