Reference documentation and code samples for the Cloud Spanner V1 API class Google::Cloud::Spanner::V1::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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#all
def all() -> ::Boolean
-
(::Boolean) — For convenience
all
can be set totrue
to indicate that thisKeySet
matches all keys in the table or index. Note that any keys specified inkeys
orranges
are only yielded once.
#all=
def all=(value) -> ::Boolean
-
value (::Boolean) — For convenience
all
can be set totrue
to indicate that thisKeySet
matches all keys in the table or index. Note that any keys specified inkeys
orranges
are only yielded once.
-
(::Boolean) — For convenience
all
can be set totrue
to indicate that thisKeySet
matches all keys in the table or index. Note that any keys specified inkeys
orranges
are only yielded once.
#keys
def keys() -> ::Array<::Google::Protobuf::ListValue>
-
(::Array<::Google::Protobuf::ListValue>) — 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 thisKeySet
is used. Individual key values are encoded as described here.
#keys=
def keys=(value) -> ::Array<::Google::Protobuf::ListValue>
-
value (::Array<::Google::Protobuf::ListValue>) — 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 thisKeySet
is used. Individual key values are encoded as described here.
-
(::Array<::Google::Protobuf::ListValue>) — 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 thisKeySet
is used. Individual key values are encoded as described here.
#ranges
def ranges() -> ::Array<::Google::Cloud::Spanner::V1::KeyRange>
- (::Array<::Google::Cloud::Spanner::V1::KeyRange>) — A list of key ranges. See KeyRange for more information about key range specifications.
#ranges=
def ranges=(value) -> ::Array<::Google::Cloud::Spanner::V1::KeyRange>
- value (::Array<::Google::Cloud::Spanner::V1::KeyRange>) — A list of key ranges. See KeyRange for more information about key range specifications.
- (::Array<::Google::Cloud::Spanner::V1::KeyRange>) — A list of key ranges. See KeyRange for more information about key range specifications.