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.
Definition: keys.h:157
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.
Definition: keys.h:136
- Example
auto delete_singers_range =
.Build();
KeyBound MakeKeyBoundClosed(Ts &&... ts)
Returns a "closed" KeyBound with a Key constructed from the given arguments.
Definition: keys.h:124
spanner_internal::DeleteMutationBuilder DeleteMutationBuilder
A helper class to construct "delete" mutations.
Definition: mutations.h:355
◆ Bound
An enum indicating whether the Key
is included (closed) or excluded (open).
◆ KeyBound() [1/4]
google::cloud::spanner::KeyBound::KeyBound |
( |
| ) |
|
|
delete |
Not default constructible.
◆ KeyBound() [2/4]
google::cloud::spanner::KeyBound::KeyBound |
( |
Key |
key, |
|
|
Bound |
bound |
|
) |
| |
|
inline |
Constructs an instance with the given key
and bound
.
◆ KeyBound() [3/4]
google::cloud::spanner::KeyBound::KeyBound |
( |
KeyBound const & |
| ) |
|
|
default |
◆ KeyBound() [4/4]
google::cloud::spanner::KeyBound::KeyBound |
( |
KeyBound && |
| ) |
|
|
default |
◆ bound()
Bound google::cloud::spanner::KeyBound::bound |
( |
| ) |
const |
|
inline |
◆ key() [1/2]
Key && google::cloud::spanner::KeyBound::key |
( |
| ) |
&& |
|
inline |
Returns the Key
(by move).
◆ key() [2/2]
Key const & google::cloud::spanner::KeyBound::key |
( |
| ) |
const & |
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ operator!=
◆ operator==