public
final
class
Group
extends
GeneratedMessage
implements
GroupOrBuilder
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.
Protobuf type google.spanner.v1.Group
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > GroupImplements
GroupOrBuilderStatic Fields
GENERATION_FIELD_NUMBER
public
static
final
int
GENERATION_FIELD_NUMBER
GROUP_UID_FIELD_NUMBER
public
static
final
int
GROUP_UID_FIELD_NUMBER
LEADER_INDEX_FIELD_NUMBER
public
static
final
int
LEADER_INDEX_FIELD_NUMBER
TABLETS_FIELD_NUMBER
public
static
final
int
TABLETS_FIELD_NUMBER
Static Methods
getDefaultInstance()
public
static
Group
getDefaultInstance
()
getDescriptor()
public
static
final
Descriptors
.
Descriptor
getDescriptor
()
newBuilder()
public
static
Group
.
Builder
newBuilder
()
newBuilder(Group prototype)
public
static
Group
.
Builder
newBuilder
(
Group
prototype
)
parseDelimitedFrom(InputStream input)
public
static
Group
parseDelimitedFrom
(
InputStream
input
)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Group
parseDelimitedFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(byte[] data)
public
static
Group
parseFrom
(
byte
[]
data
)
data
byte
[]
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public
static
Group
parseFrom
(
byte
[]
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteString data)
public
static
Group
parseFrom
(
ByteString
data
)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public
static
Group
parseFrom
(
ByteString
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(CodedInputStream input)
public
static
Group
parseFrom
(
CodedInputStream
input
)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Group
parseFrom
(
CodedInputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(InputStream input)
public
static
Group
parseFrom
(
InputStream
input
)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Group
parseFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteBuffer data)
public
static
Group
parseFrom
(
ByteBuffer
data
)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public
static
Group
parseFrom
(
ByteBuffer
data
,
ExtensionRegistryLite
extensionRegistry
)
parser()
public
static
Parser<Group>
parser
()
Methods
equals(Object obj)
public
boolean
equals
(
Object
obj
)
getDefaultInstanceForType()
public
Group
getDefaultInstanceForType
()
getGeneration()
public
ByteString
getGeneration
()
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.
bytes generation = 4;
getGroupUid()
public
long
getGroupUid
()
The UID of the paxos group, unique within the database. Matches the group_uid
field in Range
.
uint64 group_uid = 1;
getLeaderIndex()
public
int
getLeaderIndex
()
The last known leader tablet of the group as an index into tablets
. May
be negative if the group has no known leader.
int32 leader_index = 3;
getParserForType()
public
Parser<Group>
getParserForType
()
getSerializedSize()
public
int
getSerializedSize
()
getTablets(int index)
public
Tablet
getTablets
(
int
index
)
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
.
repeated .google.spanner.v1.Tablet tablets = 2;
getTabletsCount()
public
int
getTabletsCount
()
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
.
repeated .google.spanner.v1.Tablet tablets = 2;
getTabletsList()
public
List<Tablet>
getTabletsList
()
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
.
repeated .google.spanner.v1.Tablet tablets = 2;
getTabletsOrBuilder(int index)
public
TabletOrBuilder
getTabletsOrBuilder
(
int
index
)
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
.
repeated .google.spanner.v1.Tablet tablets = 2;
getTabletsOrBuilderList()
public
List
< ?
extends
TabletOrBuilder
>
getTabletsOrBuilderList
()
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
.
repeated .google.spanner.v1.Tablet tablets = 2;
hashCode()
public
int
hashCode
()
internalGetFieldAccessorTable()
protected
GeneratedMessage
.
FieldAccessorTable
internalGetFieldAccessorTable
()
isInitialized()
public
final
boolean
isInitialized
()
newBuilderForType()
public
Group
.
Builder
newBuilderForType
()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected
Group
.
Builder
newBuilderForType
(
AbstractMessage
.
BuilderParent
parent
)
toBuilder()
public
Group
.
Builder
toBuilder
()
writeTo(CodedOutputStream output)
public
void
writeTo
(
CodedOutputStream
output
)

