public sealed class Group : IMessage<Group>, IEquatable<Group>, IDeepCloneable<Group>, IBufferMessage, IMessageReference documentation and code samples for the Google Cloud Spanner v1 API class Group.
A Group represents a paxos group in a database. A group is a set of
tablets that are replicated across multiple servers. Groups may have a leader
tablet. Groups store one (or sometimes more) ranges of keys.
Namespace
Google.Cloud.Spanner.V1Assembly
Google.Cloud.Spanner.V1.dll
Constructors
Group()
public Group()Group(Group)
public Group(Group other)| Parameter | |
|---|---|
| Name | Description |
other |
Group |
Properties
Generation
public ByteString Generation { get; set; }generation indicates the freshness of the group information (including
leader information) contained in this proto. Generations can be compared
lexicographically; if generation A is greater than generation B, then the
Group corresponding to A is newer than the Group corresponding to B,
and should be used preferentially.
| Property Value | |
|---|---|
| Type | Description |
ByteString |
|
GroupUid
public ulong GroupUid { get; set; }The UID of the paxos group, unique within the database. Matches the
group_uid field in Range.
| Property Value | |
|---|---|
| Type | Description |
ulong |
|
LeaderIndex
public int LeaderIndex { get; set; }The last known leader tablet of the group as an index into tablets. May
be negative if the group has no known leader.
| Property Value | |
|---|---|
| Type | Description |
int |
|
Tablets
public RepeatedField<Tablet> Tablets { get; }A list of tablets that are part of the group. Note that this list may not be exhaustive; it will only include tablets the server considers useful to the client. The returned list is ordered ascending by distance.
Tablet UIDs reference Tablet.tablet_uid.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldTablet |
|