The KeyBound
class is a regular type that represents an open or closed endpoint for a range of keys.
More...
#include <google/cloud/spanner/keys.h>
|
enum class | Bound { kClosed
, kOpen
} |
| An enum indicating whether the Key is included (closed) or excluded (open). More...
|
|
The KeyBound
class is a regular type that represents an open or closed endpoint for a range of keys.
A range of keys is defined by a starting KeyBound
and an ending KeyBound
, and it logically includes all intermediate keys, optionally including/excluding the bounds.
KeyBound
s can be "open", meaning the matching row will be excluded from the results, or "closed" meaning the matching row will be included. KeyBound
instances should be created with the MakeKeyBoundOpen()
or MakeKeyBoundClosed()
factory functions.
- Example
The KeySet class is a regular type that represents a collection of Keys.
KeySet & AddRange(KeyBound start, KeyBound end)
Adds a range of keys defined by the given KeyBounds.
KeyBound MakeKeyBoundOpen(Ts &&... ts)
Returns an "open" KeyBound with a Key constructed from the given arguments.
- Example
auto delete_singers_range =
.Build();
KeyBound MakeKeyBoundClosed(Ts &&... ts)
Returns a "closed" KeyBound with a Key constructed from the given arguments.
spanner_internal::DeleteMutationBuilder DeleteMutationBuilder
A helper class to construct "delete" mutations.
Definition at line 74 of file keys.h.
◆ Bound
An enum indicating whether the Key
is included (closed) or excluded (open).
Definition at line 78 of file keys.h.
◆ KeyBound() [1/4]
google::cloud::spanner::v1::KeyBound::KeyBound |
( |
| ) |
|
|
delete |
Not default constructible.
◆ KeyBound() [2/4]
google::cloud::spanner::v1::KeyBound::KeyBound |
( |
Key |
key, |
|
|
Bound |
bound |
|
) |
| |
|
inline |
Constructs an instance with the given key
and bound
.
Definition at line 84 of file keys.h.
◆ KeyBound() [3/4]
google::cloud::spanner::v1::KeyBound::KeyBound |
( |
KeyBound const & |
| ) |
|
|
default |
◆ KeyBound() [4/4]
google::cloud::spanner::v1::KeyBound::KeyBound |
( |
KeyBound && |
| ) |
|
|
default |
◆ bound()
Bound google::cloud::spanner::v1::KeyBound::bound |
( |
| ) |
const |
|
inline |
Returns the Bound
.
Definition at line 101 of file keys.h.
◆ key() [1/2]
Key&& google::cloud::spanner::v1::KeyBound::key |
( |
| ) |
&& |
|
inline |
Returns the Key
(by move).
Definition at line 98 of file keys.h.
◆ key() [2/2]
Key const& google::cloud::spanner::v1::KeyBound::key |
( |
| ) |
const & |
|
inline |
Returns the Key
.
Definition at line 95 of file keys.h.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ operator!=
◆ operator==