Class Group (3.60.0)

Group(mapping=None,*,ignore_unknown_fields=False,**kwargs)

AGroup represents a paxos group in a database. A group is a setof tablets that are replicated across multiple servers. Groups mayhave a leader tablet. Groups store one (or sometimes more) ranges ofkeys.

Attributes

NameDescription
group_uidint
The UID of the paxos group, unique within the database. Matches thegroup_uid field inRange.
tabletsMutableSequence[google.cloud.spanner_v1.types.Tablet]
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 referenceTablet.tablet_uid.
leader_indexint
The last known leader tablet of the group as an index intotablets. May be negative if the group has no known leader.
generationbytes
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 theGroup corresponding to A is newer than theGroup corresponding to B, and should be used preferentially.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-16 UTC.