Class RangeRequest
Inheritance
System.Object
RangeRequest
Assembly: cs.temp.dll.dll
Syntax
public sealed class RangeRequest : Google.Protobuf.IMessage<RangeRequest>
Constructors
RangeRequest()
Declaration
RangeRequest(RangeRequest)
Declaration
public RangeRequest(RangeRequest other)
Parameters
Fields
CountOnlyFieldNumber
Field number for the "count_only" field.
Declaration
public const int CountOnlyFieldNumber = 9
Field Value
Type |
Description |
System.Int32 |
|
KeyFieldNumber
Field number for the "key" field.
Declaration
public const int KeyFieldNumber = 1
Field Value
Type |
Description |
System.Int32 |
|
KeysOnlyFieldNumber
Field number for the "keys_only" field.
Declaration
public const int KeysOnlyFieldNumber = 8
Field Value
Type |
Description |
System.Int32 |
|
LimitFieldNumber
Field number for the "limit" field.
Declaration
public const int LimitFieldNumber = 3
Field Value
Type |
Description |
System.Int32 |
|
MaxCreateRevisionFieldNumber
Field number for the "max_create_revision" field.
Declaration
public const int MaxCreateRevisionFieldNumber = 13
Field Value
Type |
Description |
System.Int32 |
|
MaxModRevisionFieldNumber
Field number for the "max_mod_revision" field.
Declaration
public const int MaxModRevisionFieldNumber = 11
Field Value
Type |
Description |
System.Int32 |
|
MinCreateRevisionFieldNumber
Field number for the "min_create_revision" field.
Declaration
public const int MinCreateRevisionFieldNumber = 12
Field Value
Type |
Description |
System.Int32 |
|
MinModRevisionFieldNumber
Field number for the "min_mod_revision" field.
Declaration
public const int MinModRevisionFieldNumber = 10
Field Value
Type |
Description |
System.Int32 |
|
RangeEndFieldNumber
Field number for the "range_end" field.
Declaration
public const int RangeEndFieldNumber = 2
Field Value
Type |
Description |
System.Int32 |
|
RevisionFieldNumber
Field number for the "revision" field.
Declaration
public const int RevisionFieldNumber = 4
Field Value
Type |
Description |
System.Int32 |
|
SerializableFieldNumber
Field number for the "serializable" field.
Declaration
public const int SerializableFieldNumber = 7
Field Value
Type |
Description |
System.Int32 |
|
SortOrderFieldNumber
Field number for the "sort_order" field.
Declaration
public const int SortOrderFieldNumber = 5
Field Value
Type |
Description |
System.Int32 |
|
SortTargetFieldNumber
Field number for the "sort_target" field.
Declaration
public const int SortTargetFieldNumber = 6
Field Value
Type |
Description |
System.Int32 |
|
Properties
CountOnly
count_only when set returns only the count of the keys in the range.
Declaration
public bool CountOnly { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Descriptor
Declaration
public static Google.Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Property Value
Type |
Description |
Google.Protobuf.Reflection.MessageDescriptor |
|
Key
key is the first key for the range. If range_end is not given, the request only looks up key.
Declaration
public Google.Protobuf.ByteString Key { get; set; }
Property Value
Type |
Description |
Google.Protobuf.ByteString |
|
KeysOnly
keys_only when set returns only the keys and not the values.
Declaration
public bool KeysOnly { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Limit
limit is a limit on the number of keys returned for the request. When limit is set to 0,
it is treated as no limit.
Declaration
public long Limit { get; set; }
Property Value
Type |
Description |
System.Int64 |
|
MaxCreateRevision
max_create_revision is the upper bound for returned key create revisions; all keys with
greater create revisions will be filtered away.
Declaration
public long MaxCreateRevision { get; set; }
Property Value
Type |
Description |
System.Int64 |
|
MaxModRevision
max_mod_revision is the upper bound for returned key mod revisions; all keys with
greater mod revisions will be filtered away.
Declaration
public long MaxModRevision { get; set; }
Property Value
Type |
Description |
System.Int64 |
|
MinCreateRevision
min_create_revision is the lower bound for returned key create revisions; all keys with
lesser create trevisions will be filtered away.
Declaration
public long MinCreateRevision { get; set; }
Property Value
Type |
Description |
System.Int64 |
|
MinModRevision
min_mod_revision is the lower bound for returned key mod revisions; all keys with
lesser mod revisions will be filtered away.
Declaration
public long MinModRevision { get; set; }
Property Value
Type |
Description |
System.Int64 |
|
Parser
Declaration
public static Google.Protobuf.MessageParser<RangeRequest> Parser { get; }
Property Value
Type |
Description |
Google.Protobuf.MessageParser<RangeRequest> |
|
RangeEnd
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 key plus one (e.g., "aa"+1 == "ab", "a\xff"+1 == "b"),
then the range request gets all keys prefixed with key.
If both key and range_end are '\0', then the range request returns all keys.
Declaration
public Google.Protobuf.ByteString RangeEnd { get; set; }
Property Value
Type |
Description |
Google.Protobuf.ByteString |
|
Revision
revision is the point-in-time of the key-value store to use for the range.
If revision is less or equal to zero, the range is over the newest key-value store.
If the revision has been compacted, ErrCompacted is returned as a response.
Declaration
public long Revision { get; set; }
Property Value
Type |
Description |
System.Int64 |
|
Serializable
serializable sets the range request to use serializable member-local reads.
Range requests are linearizable by default; linearizable requests have higher
latency and lower throughput than serializable requests but reflect the current
consensus of the cluster. For better performance, in exchange for possible stale reads,
a serializable range request is served locally without needing to reach consensus
with other nodes in the cluster.
Declaration
public bool Serializable { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
SortOrder
sort_order is the order for returned sorted results.
Declaration
public RangeRequest.Types.SortOrder SortOrder { get; set; }
Property Value
SortTarget
sort_target is the key-value field to use for sorting.
Declaration
public RangeRequest.Types.SortTarget SortTarget { get; set; }
Property Value
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Type |
Description |
System.Int32 |
|
Clone()
Declaration
public RangeRequest Clone()
Returns
Equals(RangeRequest)
Declaration
public bool Equals(RangeRequest other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
System.Object |
other |
|
Returns
Type |
Description |
System.Boolean |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
MergeFrom(RangeRequest)
Declaration
public void MergeFrom(RangeRequest other)
Parameters
Declaration
public void MergeFrom(Google.Protobuf.CodedInputStream input)
Parameters
Type |
Name |
Description |
Google.Protobuf.CodedInputStream |
input |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
WriteTo(Google.Protobuf.CodedOutputStream)
Declaration
public void WriteTo(Google.Protobuf.CodedOutputStream output)
Parameters
Type |
Name |
Description |
Google.Protobuf.CodedOutputStream |
output |
|