- 6.107.0 (latest)
- 6.103.0
- 6.102.1
- 6.101.1
- 6.100.0
- 6.99.0
- 6.98.1
- 6.97.1
- 6.96.1
- 6.95.1
- 6.94.0
- 6.93.0
- 6.89.0
- 6.88.0
- 6.87.0
- 6.86.0
- 6.85.0
- 6.83.0
- 6.82.0
- 6.80.1
- 6.79.0
- 6.77.0
- 6.74.1
- 6.72.0
- 6.71.0
- 6.69.0
- 6.68.0
- 6.66.0
- 6.65.1
- 6.62.0
- 6.60.0
- 6.58.0
- 6.57.0
- 6.56.0
- 6.55.0
- 6.54.0
- 6.53.0
- 6.52.1
- 6.51.0
- 6.50.1
- 6.49.0
- 6.25.1
- 6.24.0
- 6.23.4
- 6.22.0
- 6.21.2
- 6.20.0
- 6.19.1
- 6.18.0
- 6.17.4
- 6.14.1
public static final class Range.Builder extends GeneratedMessageV3.Builder<Range.Builder> implements RangeOrBuilder A Range represents a range of keys in a database. The keys themselves
are encoded in "sortable string format", also known as ssformat. Consult
Spanner's open source client libraries for details on the encoding.
Each range represents a contiguous range of rows, possibly from multiple
tables/indexes. Each range is associated with a single paxos group (known as
a "group" throughout this API), a split (which names the exact range within
the group), and a generation that can be used to determine whether a given
Range represents a newer or older location for the key range.
Protobuf type google.spanner.v1.Range
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Range.BuilderImplements
RangeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Range.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Range.Builder |
|
build()
public Range build()| Returns | |
|---|---|
| Type | Description |
Range |
|
buildPartial()
public Range buildPartial()| Returns | |
|---|---|
| Type | Description |
Range |
|
clear()
public Range.Builder clear()| Returns | |
|---|---|
| Type | Description |
Range.Builder |
|
clearField(Descriptors.FieldDescriptor field)
public Range.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
Range.Builder |
|
clearGeneration()
public Range.Builder clearGeneration() 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 | |
|---|---|
| Type | Description |
Range.Builder |
This builder for chaining. |
clearGroupUid()
public Range.Builder clearGroupUid() 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 | |
|---|---|
| Type | Description |
Range.Builder |
This builder for chaining. |
clearLimitKey()
public Range.Builder clearLimitKey()The limit key of the range, exclusive. Encoded in "sortable string format" (ssformat).
bytes limit_key = 2;
| Returns | |
|---|---|
| Type | Description |
Range.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Range.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
Range.Builder |
|
clearSplitId()
public Range.Builder clearSplitId() 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 | |
|---|---|
| Type | Description |
Range.Builder |
This builder for chaining. |
clearStartKey()
public Range.Builder clearStartKey()The start key of the range, inclusive. Encoded in "sortable string format" (ssformat).
bytes start_key = 1;
| Returns | |
|---|---|
| Type | Description |
Range.Builder |
This builder for chaining. |
clone()
public Range.Builder clone()| Returns | |
|---|---|
| Type | Description |
Range.Builder |
|
getDefaultInstanceForType()
public Range getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Range |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getGeneration()
public 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 | |
|---|---|
| Type | Description |
ByteString |
The generation. |
getGroupUid()
public 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 | |
|---|---|
| Type | Description |
long |
The groupUid. |
getLimitKey()
public ByteString getLimitKey()The limit key of the range, exclusive. Encoded in "sortable string format" (ssformat).
bytes limit_key = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The limitKey. |
getSplitId()
public 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 | |
|---|---|
| Type | Description |
long |
The splitId. |
getStartKey()
public ByteString getStartKey()The start key of the range, inclusive. Encoded in "sortable string format" (ssformat).
bytes start_key = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The startKey. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Range.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Range.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Range.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Range.Builder |
|
mergeFrom(Range other)
public Range.Builder mergeFrom(Range other)| Parameter | |
|---|---|
| Name | Description |
other |
Range |
| Returns | |
|---|---|
| Type | Description |
Range.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Range.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Range.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public Range.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Range.Builder |
|
setGeneration(ByteString value)
public Range.Builder setGeneration(ByteString value) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe generation to set. |
| Returns | |
|---|---|
| Type | Description |
Range.Builder |
This builder for chaining. |
setGroupUid(long value)
public Range.Builder setGroupUid(long value) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe groupUid to set. |
| Returns | |
|---|---|
| Type | Description |
Range.Builder |
This builder for chaining. |
setLimitKey(ByteString value)
public Range.Builder setLimitKey(ByteString value)The limit key of the range, exclusive. Encoded in "sortable string format" (ssformat).
bytes limit_key = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe limitKey to set. |
| Returns | |
|---|---|
| Type | Description |
Range.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Range.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Range.Builder |
|
setSplitId(long value)
public Range.Builder setSplitId(long value) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe splitId to set. |
| Returns | |
|---|---|
| Type | Description |
Range.Builder |
This builder for chaining. |
setStartKey(ByteString value)
public Range.Builder setStartKey(ByteString value)The start key of the range, inclusive. Encoded in "sortable string format" (ssformat).
bytes start_key = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe startKey to set. |
| Returns | |
|---|---|
| Type | Description |
Range.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Range.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Range.Builder |
|