class QueryOptions (View source)

Methods

timeout(int $arg)

Sets the operation timeout in milliseconds.

consistentWith(MutationState $arg)

Sets the mutation state to achieve consistency with for read your own writes (RYOW).

scanConsistency(int $arg)

Sets the scan consistency.

scanCap(int $arg)

Sets the maximum buffered channel size between the indexer client and the query service for index scans.

pipelineCap(int $arg)

Sets the maximum number of items each execution operator can buffer between various operators.

pipelineBatch(int $arg)

Sets the number of items execution operators can batch for fetch from the KV service.

maxParallelism(int $arg)

Sets the maximum number of index partitions, for computing aggregation in parallel.

profile(int $arg)

Sets the query profile mode to use.

readonly(bool $arg)

Sets whether or not this query is readonly.

flexIndex(bool $arg)

Sets whether or not this query allowed to use FlexIndex (full text search integration).

adhoc(bool $arg)

Sets whether or not this query is adhoc.

namedParameters(array $pairs)

Sets the named parameters for this query.

positionalParameters(array $args)

Sets the positional parameters for this query.

raw(string $key, string $value)

Sets any extra query parameters that the SDK does not provide an option for.

clientContextId(string $arg)

Sets the client context id for this query.

metrics(bool $arg)

Sets whether or not to return metrics with the query.

scopeName(string $arg)

Associate scope name with query

scopeQualifier(string $arg)

Associate scope qualifier (also known as query_context) with the query.

Details

QueryOptions timeout(int $arg)

Sets the operation timeout in milliseconds.

Parameters

int $arg

the operation timeout to apply

Return Value

QueryOptions

QueryOptions consistentWith(MutationState $arg)

Sets the mutation state to achieve consistency with for read your own writes (RYOW).

Parameters

MutationState $arg

the mutation state to achieve consistency with

Return Value

QueryOptions

QueryOptions scanConsistency(int $arg)

Sets the scan consistency.

Parameters

int $arg

the scan consistency level

Return Value

QueryOptions

QueryOptions scanCap(int $arg)

Sets the maximum buffered channel size between the indexer client and the query service for index scans.

Parameters

int $arg

the maximum buffered channel size

Return Value

QueryOptions

QueryOptions pipelineCap(int $arg)

Sets the maximum number of items each execution operator can buffer between various operators.

Parameters

int $arg

the maximum number of items each execution operation can buffer

Return Value

QueryOptions

QueryOptions pipelineBatch(int $arg)

Sets the number of items execution operators can batch for fetch from the KV service.

Parameters

int $arg

the pipeline batch size

Return Value

QueryOptions

QueryOptions maxParallelism(int $arg)

Sets the maximum number of index partitions, for computing aggregation in parallel.

Parameters

int $arg

the number of index partitions

Return Value

QueryOptions

QueryOptions profile(int $arg)

Sets the query profile mode to use.

Parameters

int $arg

the query profile mode

Return Value

QueryOptions

QueryOptions readonly(bool $arg)

Sets whether or not this query is readonly.

Parameters

bool $arg

whether the query is readonly

Return Value

QueryOptions

QueryOptions flexIndex(bool $arg)

Sets whether or not this query allowed to use FlexIndex (full text search integration).

Parameters

bool $arg

whether the FlexIndex allowed

Return Value

QueryOptions

QueryOptions adhoc(bool $arg)

Sets whether or not this query is adhoc.

Parameters

bool $arg

whether the query is adhoc

Return Value

QueryOptions

QueryOptions namedParameters(array $pairs)

Sets the named parameters for this query.

Parameters

array $pairs

the associative array of parameters

Return Value

QueryOptions

QueryOptions positionalParameters(array $args)

Sets the positional parameters for this query.

Parameters

array $args

the array of parameters

Return Value

QueryOptions

QueryOptions raw(string $key, string $value)

Sets any extra query parameters that the SDK does not provide an option for.

Parameters

string $key

the name of the parameter

string $value

the value of the parameter

Return Value

QueryOptions

QueryOptions clientContextId(string $arg)

Sets the client context id for this query.

Parameters

string $arg

the client context id

Return Value

QueryOptions

QueryOptions metrics(bool $arg)

Sets whether or not to return metrics with the query.

Parameters

bool $arg

whether to return metrics

Return Value

QueryOptions

QueryOptions scopeName(string $arg)

Associate scope name with query

Parameters

string $arg

the name of the scope

Return Value

QueryOptions

QueryOptions scopeQualifier(string $arg)

Associate scope qualifier (also known as query_context) with the query.

The qualifier must be in form ${bucketName}.${scopeName} or default:${bucketName}.${scopeName}

Parameters

string $arg

the scope qualifier

Return Value

QueryOptions