|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.github.shyiko.mysql.binlog.GtidSet
public class GtidSet
GTID set as described in GTID Concepts of MySQL 5.6 Reference Manual.
gtid_set: uuid_set[,uuid_set]... uuid_set: uuid:interval[:interval]... uuid: hhhhhhhh-hhhh-hhhh-hhhh-hhhhhhhhhhhh, h: [0-9|A-F] interval: n[-n], (n >= 1)
Nested Class Summary | |
---|---|
static class |
GtidSet.Interval
An interval of contiguous transaction identifiers. |
static class |
GtidSet.UUIDSet
A range of GTIDs for a single server with a specific UUID. |
Constructor Summary | |
---|---|
GtidSet(String gtidSet)
|
Method Summary | |
---|---|
boolean |
add(String gtid)
|
boolean |
equals(Object obj)
|
GtidSet.UUIDSet |
getUUIDSet(String uuid)
Find the GtidSet.UUIDSet for the server with the specified UUID. |
Collection<GtidSet.UUIDSet> |
getUUIDSets()
Get an immutable collection of the range of GTIDs for a single server . |
int |
hashCode()
|
boolean |
isContainedWithin(GtidSet other)
Determine if the GTIDs represented by this object are contained completely within the supplied set of GTIDs. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GtidSet(String gtidSet)
gtidSet
- gtid set comprised of closed intervals (like MySQL's executed_gtid_set).Method Detail |
---|
public Collection<GtidSet.UUIDSet> getUUIDSets()
range of GTIDs for a single server
.
GTID ranges for each server
; never nullpublic GtidSet.UUIDSet getUUIDSet(String uuid)
GtidSet.UUIDSet
for the server with the specified UUID.
uuid
- the UUID of the server
GtidSet.UUIDSet
for the identified server, or null
if there are no GTIDs from that server.public boolean add(String gtid)
gtid
- GTID ("source_id:transaction_id")
public boolean isContainedWithin(GtidSet other)
GtidSet
s are equal, then they both are subsets of the other.
other
- the other set of GTIDs; may be null
true
if all of the GTIDs in this set are equal to or completely contained within the supplied
set of GTIDs, or false
otherwisepublic int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |