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 document outlines the \u003ccode\u003eKeySet\u003c/code\u003e class in the Google Cloud Spanner C++ library, focusing on its role in managing collections of keys.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eKeySet\u003c/code\u003e class allows users to add individual keys via \u003ccode\u003eAddKey(Key)\u003c/code\u003e and ranges of keys through \u003ccode\u003eAddRange(KeyBound, KeyBound)\u003c/code\u003e, to a collection of keys.\u003c/p\u003e\n"],["\u003cp\u003eUsers can also represent a set of all keys with \u003ccode\u003eKeySet::All()\u003c/code\u003e, and the examples showcase its usage in deleting all rows from a table.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eKeySet\u003c/code\u003e instances must have keys that share the same number and types of values, and it can also be constructed as an empty set using \u003ccode\u003eKeySet()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe page also contains version information of the \u003ccode\u003eKeySet\u003c/code\u003e class, beginning with \u003ccode\u003e2.11.0\u003c/code\u003e up to the latest release candidate \u003ccode\u003e2.37.0-rc\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]