com.github.shyiko.mysql.binlog
Class GtidSet.UUIDSet

java.lang.Object
  extended by com.github.shyiko.mysql.binlog.GtidSet.UUIDSet
Enclosing class:
GtidSet

public static final class GtidSet.UUIDSet
extends Object

A range of GTIDs for a single server with a specific UUID.

See Also:
GtidSet

Method Summary
 boolean equals(Object obj)
           
 List<GtidSet.Interval> getIntervals()
          Get the intervals of transaction numbers.
 String 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.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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:
true if this server's transaction numbers are equal to or a subset of the transaction numbers of the supplied set, or false otherwise

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2017. All Rights Reserved.