public sealed class KeySet : IMessage<KeySet>, IEquatable<KeySet>, IDeepCloneable<KeySet>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Spanner v1 API class KeySet.
KeySet
defines a collection of Cloud Spanner keys and/or key ranges. All
the keys are expected to be in the same table or index. The keys need
not be sorted in any particular way.
If the same key is specified multiple times in the set (for example if two ranges, two keys, or a key and a range overlap), Cloud Spanner behaves as if the key were only specified once.
Namespace
Google.Cloud.Spanner.V1Assembly
Google.Cloud.Spanner.V1.dll
Constructors
KeySet()
public KeySet()
KeySet(KeySet)
public KeySet(KeySet other)
Parameter | |
---|---|
Name | Description |
other | KeySet |
Properties
All
public bool All { get; set; }
For convenience all
can be set to true
to indicate that this
KeySet
matches all keys in the table or index. Note that any keys
specified in keys
or ranges
are only yielded once.
Property Value | |
---|---|
Type | Description |
Boolean |
Keys
public RepeatedField<ListValue> Keys { get; }
A list of specific keys. Entries in keys
should have exactly as
many elements as there are columns in the primary or index key
with which this KeySet
is used. Individual key values are
encoded as described [here][google.spanner.v1.TypeCode].
Property Value | |
---|---|
Type | Description |
RepeatedField<ListValue> |
Ranges
public RepeatedField<KeyRange> Ranges { get; }
A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about key range specifications.
Property Value | |
---|---|
Type | Description |
RepeatedField<KeyRange> |