|
@@ -201,6 +201,9 @@ type RangeRequest struct {
|
|
|
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
|
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
|
|
// range_end is the upper bound on the requested range [key, range_end).
|
|
// range_end is the upper bound on the requested range [key, range_end).
|
|
|
// If range_end is '\0', the range is all keys >= key.
|
|
// If range_end is '\0', the range is all keys >= key.
|
|
|
|
|
+ // If the range_end is one bit larger than the given key,
|
|
|
|
|
+ // then the range requests get the all keys with the prefix (the given key).
|
|
|
|
|
+ // If both key and range_end are '\0', then range requests returns all keys.
|
|
|
RangeEnd []byte `protobuf:"bytes,2,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"`
|
|
RangeEnd []byte `protobuf:"bytes,2,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"`
|
|
|
// limit is a limit on the number of keys returned for the request.
|
|
// limit is a limit on the number of keys returned for the request.
|
|
|
Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
|
|
Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
|