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-08-22 UTC."],[[["\u003cp\u003eThis webpage details the \u003ccode\u003eKeySet\u003c/code\u003e class in the Google Cloud Spanner C++ library, representing a collection of \u003ccode\u003eKey\u003c/code\u003es for database operations.\u003c/p\u003e\n"],["\u003cp\u003eUsers can create a \u003ccode\u003eKeySet\u003c/code\u003e instance, then include individual \u003ccode\u003eKey\u003c/code\u003es or ranges of \u003ccode\u003eKey\u003c/code\u003es, making sure all keys within the set are of consistent types and numbers of values.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eKeySet::All()\u003c/code\u003e function enables the creation of a \u003ccode\u003eKeySet\u003c/code\u003e instance representing all keys, which is useful for operations like deleting all rows in a table.\u003c/p\u003e\n"],["\u003cp\u003eThe page also provides versioned documentation, detailing how the \u003ccode\u003eKeySet\u003c/code\u003e class has appeared in different versions, with version 2.37.0-rc being the latest release candidate.\u003c/p\u003e\n"],["\u003cp\u003eThe page displays an overview of \u003ccode\u003eKeySet\u003c/code\u003e constructors, operators, and functions, including \u003ccode\u003eAll()\u003c/code\u003e, \u003ccode\u003eAddKey(Key)\u003c/code\u003e, and \u003ccode\u003eAddRange(KeyBound, KeyBound)\u003c/code\u003e which are explained with examples.\u003c/p\u003e\n"]]],[],null,[]]