Options passed to Client::Read
or Client::PartitionRead
.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-22 UTC.
[[["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 provides documentation for the \u003ccode\u003eReadOptions\u003c/code\u003e structure in the Google Cloud Spanner C++ client library.\u003c/p\u003e\n"],["\u003cp\u003eThe latest release candidate version is \u003ccode\u003e2.37.0-rc\u003c/code\u003e, with many prior versions also documented, going as far back as \u003ccode\u003e2.11.0\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eReadOptions\u003c/code\u003e are used when invoking \u003ccode\u003eClient::Read\u003c/code\u003e or \u003ccode\u003eClient::PartitionRead\u003c/code\u003e, allowing specification of optional parameters for those function calls.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eReadOptions\u003c/code\u003e structure is now deprecated, in favor of the more robust \u003ca href=\"https://cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Options.html\"\u003e\u003ccode\u003eOptions\u003c/code\u003e\u003c/a\u003e, and other, more specific options.\u003c/p\u003e\n"],["\u003cp\u003eInstead of using \u003ccode\u003eReadOptions\u003c/code\u003e directly, you should now utilize \u003ccode\u003eOptions\u003c/code\u003e and set specific parameters like \u003ccode\u003eReadIndexNameOption\u003c/code\u003e, \u003ccode\u003eReadRowLimitOption\u003c/code\u003e, \u003ccode\u003eRequestPriorityOption\u003c/code\u003e, or \u003ccode\u003eRequestTagOption\u003c/code\u003e as needed.\u003c/p\u003e\n"]]],[],null,[]]