Interface GroupOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Group, Group.Builder

public interface GroupOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.protobuf.ByteString
    `generation` indicates the freshness of the group information (including leader information) contained in this proto.
    long
    The UID of the paxos group, unique within the database.
    int
    The last known leader tablet of the group as an index into `tablets`.
    getTablets(int index)
    A list of tablets that are part of the group.
    int
    A list of tablets that are part of the group.
    A list of tablets that are part of the group.
    A list of tablets that are part of the group.
    A list of tablets that are part of the group.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getGroupUid

      long getGroupUid()
       The UID of the paxos group, unique within the database. Matches the
       `group_uid` field in `Range`.
       
      uint64 group_uid = 1;
      Returns:
      The groupUid.
    • getTabletsList

      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;
    • getTablets

      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

      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;
    • getTabletsOrBuilderList

      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;
    • getTabletsOrBuilder

      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;
    • getLeaderIndex

      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;
      Returns:
      The leaderIndex.
    • getGeneration

      com.google.protobuf.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;
      Returns:
      The generation.