Package com.github.shyiko.mysql.binlog
Class MariadbGtidSet
java.lang.Object
com.github.shyiko.mysql.binlog.GtidSet
com.github.shyiko.mysql.binlog.MariadbGtidSet
Mariadb Global Transaction ID
- Author:
- Winger
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.github.shyiko.mysql.binlog.GtidSet
GtidSet.Interval, GtidSet.UUIDSet -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<Long, MariadbGtidSet.MariaGtid> protected Map<Long, LinkedHashMap<Long, MariadbGtidSet.MariaGtid>> -
Constructor Summary
ConstructorsConstructorDescriptionMariadbGtidSet(String gtidSet) Initialize a new MariaDB gtid set from a string, like: 0-1-24,0-555555-9709 DOMAIN_ID-SERVER_ID-SEQUENCE[,DOMAIN_ID-SERVER_ID-SEQUENCE] note that for duplicate domain ids it's "last one wins" for the current position -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(MariadbGtidSet.MariaGtid gtid) booleanvoidbooleangetUUIDSet(String uuid) Find theGtidSet.UUIDSetfor the server with the specified UUID.Get an immutable collection of therange of GTIDs for a single server.inthashCode()booleanisContainedWithin(GtidSet other) Determine if the GTIDs represented by this object are contained completely within the supplied set of GTIDs.static booleanisMariaGtidSet(String gtidSet) putUUIDSet(GtidSet.UUIDSet uuidSet) Add or replace the UUIDSettoString()
-
Field Details
-
positionMap
-
seenMap
-
-
Constructor Details
-
MariadbGtidSet
public MariadbGtidSet() -
MariadbGtidSet
Initialize a new MariaDB gtid set from a string, like: 0-1-24,0-555555-9709 DOMAIN_ID-SERVER_ID-SEQUENCE[,DOMAIN_ID-SERVER_ID-SEQUENCE] note that for duplicate domain ids it's "last one wins" for the current position- Parameters:
gtidSet- a string representing the gtid set.
-
-
Method Details
-
isMariaGtidSet
-
toString
-
toSeenString
- Overrides:
toSeenStringin classGtidSet
-
getUUIDSets
Description copied from class:GtidSetGet an immutable collection of therange of GTIDs for a single server.- Overrides:
getUUIDSetsin classGtidSet- Returns:
- the
GTID ranges for each server; never null
-
getUUIDSet
Description copied from class:GtidSetFind theGtidSet.UUIDSetfor the server with the specified UUID.- Overrides:
getUUIDSetin classGtidSet- Parameters:
uuid- the UUID of the server- Returns:
- the
GtidSet.UUIDSetfor the identified server, ornullif there are no GTIDs from that server.
-
putUUIDSet
Description copied from class:GtidSetAdd or replace the UUIDSet- Overrides:
putUUIDSetin classGtidSet- Parameters:
uuidSet- UUIDSet to be added- Returns:
- the old
GtidSet.UUIDSetfor the server given in uuidSet param, ornullif there are no UUIDSet for the given server.
-
add
-
addGtid
-
add
-
isContainedWithin
Description copied from class:GtidSetDetermine if the GTIDs represented by this object are contained completely within the supplied set of GTIDs. Note that if twoGtidSets are equal, then they both are subsets of the other.- Overrides:
isContainedWithinin classGtidSet- Parameters:
other- the other set of GTIDs; may be null- Returns:
trueif all of the GTIDs in this set are equal to or completely contained within the supplied set of GTIDs, orfalseotherwise
-
hashCode
public int hashCode() -
equals
-