Package com.github.shyiko.mysql.binlog
Class GtidSet.UUIDSet
- java.lang.Object
-
- com.github.shyiko.mysql.binlog.GtidSet.UUIDSet
-
-
Constructor Summary
Constructors Constructor Description UUIDSet(String uuid, List<GtidSet.Interval> intervals)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.StringtoString()
-
-
-
Constructor Detail
-
UUIDSet
public UUIDSet(String uuid, List<GtidSet.Interval> intervals)
-
-
Method Detail
-
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 equal to or a subset of the transaction numbers of the supplied set, or false otherwise
-
-