Package io.debezium.connector.mysql.gtid
Class MySqlGtidSet
java.lang.Object
io.debezium.connector.mysql.gtid.MySqlGtidSet
- All Implemented Interfaces:
GtidSet
Represents a set of MySQL GTIDs.
This is an improvement ove
GtidSet that is immutable, and
more properly supports comparisons.- Author:
- Chris Cranford, Randall Hauch
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classA range of GTIDs for a single server with a specific Uuid. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionMySqlGtidSet(String gtids) protectedMySqlGtidSet(Map<String, MySqlGtidSet.UUIDSet> uuidSetsByServerId) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanforServerWithId(String uuid) Find theMySqlGtidSet.UUIDSetfor the server with the specified Uuid.Get an immutable collection of therange of GTIDs for a single server.inthashCode()booleanisContainedWithin(GtidSet other) booleanisEmpty()toString()
-
Field Details
-
uuidSetsByServerId
-
GTID_DELIMITER
-
-
Constructor Details
-
MySqlGtidSet
-
MySqlGtidSet
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
retainAll
-
isContainedWithin
- Specified by:
isContainedWithinin interfaceGtidSet
-
with
-
contains
-
subtract
-
getUUIDSets
Get an immutable collection of therange of GTIDs for a single server.- Returns:
- the
GTID ranges for each server; never null
-
forServerWithId
Find theMySqlGtidSet.UUIDSetfor the server with the specified Uuid.- Parameters:
uuid- the Uuid of the server- Returns:
- the
MySqlGtidSet.UUIDSetfor the identified server, ornullif there are no GTIDs from that server.
-
hashCode
public int hashCode() -
equals
-
toString
-