@Immutable public final class GtidSet extends Object
GtidSet that is immutable,
and more properly supports comparisons.| Modifier and Type | Class and Description |
|---|---|
static class |
GtidSet.Interval |
static class |
GtidSet.UUIDSet
A range of GTIDs for a single server with a specific UUID.
|
| Modifier and Type | Field and Description |
|---|---|
private Map<String,GtidSet.UUIDSet> |
uuidSetsByServerId |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
GtidSet.UUIDSet |
forServerWithId(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() |
private final Map<String,GtidSet.UUIDSet> uuidSetsByServerId
public GtidSet(String gtids)
gtids - the string representation of the GTIDs.public Collection<GtidSet.UUIDSet> getUUIDSets()
range of GTIDs for a single server.GTID ranges for each server; never nullpublic GtidSet.UUIDSet forServerWithId(String uuid)
GtidSet.UUIDSet for the server with the specified UUID.uuid - the UUID of the serverGtidSet.UUIDSet for the identified server, or null if there are no GTIDs from that server.public boolean isContainedWithin(GtidSet other)
other - the other set of GTIDs; may be nulltrue if all of the GTIDs in this set are completely contained within the supplied set of GTIDs, or
false otherwiseCopyright © 2016 JBoss by Red Hat. All rights reserved.