The KeySet class is a regular type that represents a collection of Keys.
Users can construct a KeySet instance, then add Keys and ranges of Keys 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().
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-09 UTC."],[[["This webpage details the `KeySet` class in the Google Cloud Spanner C++ library, focusing on its role in managing collections of keys."],["The `KeySet` class allows users to add individual keys or ranges of keys to a set, ensuring all keys share the same number and types of values."],["The class provides a method `KeySet::All()` to represent a set containing all possible keys."],["There are examples showing how to construct a `KeySet` instance and add keys or ranges, and to delete all of them using `KeySet::All()`."],["The page lists the different versions of the `KeySet` class and details the class' constructors, operators and functions such as `AddKey` and `AddRange`."]]],[]]