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 page details the \u003ccode\u003eKeySet\u003c/code\u003e class, which is a data structure used to represent a collection of \u003ccode\u003eKey\u003c/code\u003es in the Google Cloud Spanner C++ client library.\u003c/p\u003e\n"],["\u003cp\u003eUsers can create a \u003ccode\u003eKeySet\u003c/code\u003e instance and add individual \u003ccode\u003eKey\u003c/code\u003es or ranges of \u003ccode\u003eKey\u003c/code\u003es to it, ensuring consistency in the number and types of values within the keys.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eKeySet::All()\u003c/code\u003e function provides a way to represent all possible keys for a given index, enabling operations like deleting all rows in a table.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eKeySet\u003c/code\u003e class supports constructors for creating empty sets, copying, or moving, as well as operators for assignment.\u003c/p\u003e\n"],["\u003cp\u003eThe page provides access to the documentation of different versions of the \u003ccode\u003eKeySet\u003c/code\u003e class, with version \u003ccode\u003e2.37.0-rc\u003c/code\u003e being the latest and versions ranging from \u003ccode\u003e2.36.0\u003c/code\u003e down to \u003ccode\u003e2.11.0\u003c/code\u003e also being available.\u003c/p\u003e\n"]]],[],null,[]]