public
final
class
Range
extends
GeneratedMessage
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<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > RangeImplements
RangeOrBuilderStatic Fields
GENERATION_FIELD_NUMBER
public
static
final
int
GENERATION_FIELD_NUMBER
GROUP_UID_FIELD_NUMBER
public
static
final
int
GROUP_UID_FIELD_NUMBER
LIMIT_KEY_FIELD_NUMBER
public
static
final
int
LIMIT_KEY_FIELD_NUMBER
SPLIT_ID_FIELD_NUMBER
public
static
final
int
SPLIT_ID_FIELD_NUMBER
START_KEY_FIELD_NUMBER
public
static
final
int
START_KEY_FIELD_NUMBER
Static Methods
getDefaultInstance()
public
static
Range
getDefaultInstance
()
getDescriptor()
public
static
final
Descriptors
.
Descriptor
getDescriptor
()
newBuilder()
public
static
Range
.
Builder
newBuilder
()
newBuilder(Range prototype)
public
static
Range
.
Builder
newBuilder
(
Range
prototype
)
parseDelimitedFrom(InputStream input)
public
static
Range
parseDelimitedFrom
(
InputStream
input
)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Range
parseDelimitedFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(byte[] data)
public
static
Range
parseFrom
(
byte
[]
data
)
data
byte
[]
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public
static
Range
parseFrom
(
byte
[]
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteString data)
public
static
Range
parseFrom
(
ByteString
data
)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public
static
Range
parseFrom
(
ByteString
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(CodedInputStream input)
public
static
Range
parseFrom
(
CodedInputStream
input
)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Range
parseFrom
(
CodedInputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(InputStream input)
public
static
Range
parseFrom
(
InputStream
input
)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Range
parseFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteBuffer data)
public
static
Range
parseFrom
(
ByteBuffer
data
)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public
static
Range
parseFrom
(
ByteBuffer
data
,
ExtensionRegistryLite
extensionRegistry
)
parser()
public
static
Parser<Range>
parser
()
Methods
equals(Object obj)
public
boolean
equals
(
Object
obj
)
getDefaultInstanceForType()
public
Range
getDefaultInstanceForType
()
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;
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;
getLimitKey()
public
ByteString
getLimitKey
()
The limit key of the range, exclusive. Encoded in "sortable string format" (ssformat).
bytes limit_key = 2;
getParserForType()
public
Parser<Range>
getParserForType
()
getSerializedSize()
public
int
getSerializedSize
()
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;
getStartKey()
public
ByteString
getStartKey
()
The start key of the range, inclusive. Encoded in "sortable string format" (ssformat).
bytes start_key = 1;
hashCode()
public
int
hashCode
()
internalGetFieldAccessorTable()
protected
GeneratedMessage
.
FieldAccessorTable
internalGetFieldAccessorTable
()
isInitialized()
public
final
boolean
isInitialized
()
newBuilderForType()
public
Range
.
Builder
newBuilderForType
()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected
Range
.
Builder
newBuilderForType
(
AbstractMessage
.
BuilderParent
parent
)
toBuilder()
public
Range
.
Builder
toBuilder
()
writeTo(CodedOutputStream output)
public
void
writeTo
(
CodedOutputStream
output
)

