Google Cloud Spanner C++ Client
1.32.0
A C++ Client Library for Google Cloud Spanner
|
The KeySet
class is a regular type that represents a collection of Key
s.
More...
#include <google/cloud/spanner/keys.h>
Public Member Functions | |
KeySet ()=default | |
Constructs an empty KeySet . More... | |
KeySet (KeySet const &)=default | |
KeySet & | operator= (KeySet const &)=default |
KeySet (KeySet &&)=default | |
KeySet & | operator= (KeySet &&)=default |
KeySet & | AddKey (Key key) |
Adds the given key to the KeySet . More... | |
KeySet & | AddRange (KeyBound start, KeyBound end) |
Adds a range of keys defined by the given KeyBound s. More... | |
Static Public Member Functions | |
static KeySet | All () |
Returns a KeySet that represents the set of "All" keys for the index. More... | |
Friends | |
Equality | |
bool | operator== (KeySet const &a, KeySet const &b) |
bool | operator!= (KeySet const &a, KeySet const &b) |
The KeySet
class is a regular type that represents a collection of Key
s.
Users can construct a KeySet
instance, then add Key
s and ranges of Key
s to the set. The caller is responsible for ensuring that all keys in a given KeySet
instance contain the same number and types of values.
Users may also optionally construct an instance that represents all keys with KeySet::All()
.
|
default |
Constructs an empty KeySet
.
|
default |
|
default |
Adds the given key
to the KeySet
.
Adds a range of keys defined by the given KeyBound
s.
|
inlinestatic |
Returns a KeySet
that represents the set of "All" keys for the index.