Reference documentation and code samples for the Cloud Spanner V1 Client class QueryAdvisorResult.
Output of query advisor analysis.
Generated from protobuf message google.spanner.v1.QueryAdvisorResult
Namespace
Google \ Cloud \ Spanner \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ index_advice |
array<QueryAdvisorResult\IndexAdvice>
Optional. Index Recommendation for a query. This is an optional field and the recommendation will only be available when the recommendation guarantees significant improvement in query performance. |
getIndexAdvice
Optional. Index Recommendation for a query. This is an optional field and the recommendation will only be available when the recommendation guarantees significant improvement in query performance.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<QueryAdvisorResult\IndexAdvice> |
|
setIndexAdvice
Optional. Index Recommendation for a query. This is an optional field and the recommendation will only be available when the recommendation guarantees significant improvement in query performance.
| Parameter | |
|---|---|
| Name | Description |
var |
array<QueryAdvisorResult\IndexAdvice>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|