Package io.debezium.connector.mysql.gtid
Class MySqlGtidSet.UUIDSet
java.lang.Object
io.debezium.connector.mysql.gtid.MySqlGtidSet.UUIDSet
- Enclosing class:
- MySqlGtidSet
A range of GTIDs for a single server with a specific Uuid.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LinkedList<MySqlGtidSet.Interval>private final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUUIDSet(com.github.shyiko.mysql.binlog.GtidSet.UUIDSet uuidSet) protectedUUIDSet(String uuid, MySqlGtidSet.Interval interval) protectedUUIDSet(String uuid, List<MySqlGtidSet.Interval> intervals) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(long transactionId) booleanGet the intervals of transaction numbers.getUUID()Get the Uuid for the server that generated the GTIDs.inthashCode()booleanDetermine 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(MySqlGtidSet.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:
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) -
hashCode
public int hashCode() -
equals
-
toString
-
subtract
-