Package com.google.spanner.v1
Interface RangeOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Range,Range.Builder
public interface RangeOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.ByteString`generation` indicates the freshness of the range information contained in this proto.longThe UID of the paxos group where this range is stored.com.google.protobuf.ByteStringThe limit key of the range, exclusive.longA group can store multiple ranges of keys.com.google.protobuf.ByteStringThe start key of the range, inclusive.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getStartKey
com.google.protobuf.ByteString getStartKey()The start key of the range, inclusive. Encoded in "sortable string format" (ssformat).
bytes start_key = 1;- Returns:
- The startKey.
-
getLimitKey
com.google.protobuf.ByteString getLimitKey()The limit key of the range, exclusive. Encoded in "sortable string format" (ssformat).
bytes limit_key = 2;- Returns:
- The limitKey.
-
getGroupUid
long getGroupUid()The UID of the paxos group where this range is stored. UIDs are unique within the database. References `Group.group_uid`.
uint64 group_uid = 3;- Returns:
- The groupUid.
-
getSplitId
long getSplitId()A group can store multiple ranges of keys. Each key range is named by an ID (the split ID). Within a group, split IDs are unique. The `split_id` names the exact split in `group_uid` where this range is stored.
uint64 split_id = 4;- Returns:
- The splitId.
-
getGeneration
com.google.protobuf.ByteString getGeneration()`generation` indicates the freshness of the range information contained in this proto. Generations can be compared lexicographically; if generation A is greater than generation B, then the `Range` corresponding to A is newer than the `Range` corresponding to B, and should be used preferentially.
bytes generation = 5;- Returns:
- The generation.
-