Some or all of the information on this page might not apply to Trusted Cloud by S3NS.
Class QueryOptions (2.37.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 2.37.0keyboard_arrow_down
These QueryOptions allow users to configure features about how their SQL queries executes on the server.
Constructors
QueryOptions()
QueryOptions(QueryOptions const &)
Parameter
Name
Description
QueryOptions const &
QueryOptions(QueryOptions &&)
Parameter
Name
Description
QueryOptions &&
QueryOptions(Options const &)
Parameter
Name
Description
opts
Options const &
Operators
operator=(QueryOptions const &)
Parameter
Name
Description
QueryOptions const &
Returns
Type
Description
QueryOptions &
operator=(QueryOptions &&)
Parameter
Name
Description
QueryOptions &&
Returns
Type
Description
QueryOptions &
operator Options() const
Functions
optimizer_version() const
Returns the optimizer version.
Returns
Type
Description
absl::optional< std::string > const &
set_optimizer_version(absl::optional< std::string >)
Sets the optimizer version to the specified integer string.
Setting to the empty string will use the database default. Use the string "latest" to use the latest available optimizer version.
Parameter
Name
Description
version
absl::optional< std::string >
Returns
Type
Description
QueryOptions &
optimizer_statistics_package() const
Returns the optimizer statistics package.
Returns
Type
Description
absl::optional< std::string > const &
set_optimizer_statistics_package(absl::optional< std::string >)
Sets the optimizer statistics package to the specified string.
Setting to the empty string will use the database default.
Parameter
Name
Description
stats_package
absl::optional< std::string >
Returns
Type
Description
QueryOptions &
request_priority() const
Returns the request priority.
Returns
Type
Description
absl::optional< RequestPriority > const &
set_request_priority(absl::optional< RequestPriority >)
Sets the request priority.
Parameter
Name
Description
priority
absl::optional< RequestPriority >
Returns
Type
Description
QueryOptions &
request_tag() const
Returns
Type
Description
absl::optional< std::string > const &
set_request_tag(absl::optional< std::string >)
Parameter
Name
Description
tag
absl::optional< std::string >
Returns
Type
Description
QueryOptions &
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-07-02 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-07-02 UTC."],[],[]]