- 6.108.0 (latest)
- 6.107.0
- 6.103.0
- 6.102.1
- 6.101.1
- 6.100.0
- 6.99.0
- 6.98.1
- 6.97.1
- 6.96.1
- 6.95.1
- 6.94.0
- 6.93.0
- 6.89.0
- 6.88.0
- 6.87.0
- 6.86.0
- 6.85.0
- 6.83.0
- 6.82.0
- 6.80.1
- 6.79.0
- 6.77.0
- 6.74.1
- 6.72.0
- 6.71.0
- 6.69.0
- 6.68.0
- 6.66.0
- 6.65.1
- 6.62.0
- 6.60.0
- 6.58.0
- 6.57.0
- 6.56.0
- 6.55.0
- 6.54.0
- 6.53.0
- 6.52.1
- 6.51.0
- 6.50.1
- 6.49.0
- 6.25.1
- 6.24.0
- 6.23.4
- 6.22.0
- 6.21.2
- 6.20.0
- 6.19.1
- 6.18.0
- 6.17.4
- 6.14.1
public static final class QueryAdvisorResult.IndexAdvice.Builder extends GeneratedMessage.Builder<QueryAdvisorResult.IndexAdvice.Builder> implements QueryAdvisorResult.IndexAdviceOrBuilderRecommendation to add new indexes to run queries more efficiently.
Protobuf type google.spanner.v1.QueryAdvisorResult.IndexAdvice
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > QueryAdvisorResult.IndexAdvice.BuilderImplements
QueryAdvisorResult.IndexAdviceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllDdl(Iterable<String> values)
public QueryAdvisorResult.IndexAdvice.Builder addAllDdl(Iterable<String> values)Optional. DDL statements to add new indexes that will improve the query.
repeated string ddl = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The ddl to add. |
| Returns | |
|---|---|
| Type | Description |
QueryAdvisorResult.IndexAdvice.Builder |
This builder for chaining. |
addDdl(String value)
public QueryAdvisorResult.IndexAdvice.Builder addDdl(String value)Optional. DDL statements to add new indexes that will improve the query.
repeated string ddl = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe ddl to add. |
| Returns | |
|---|---|
| Type | Description |
QueryAdvisorResult.IndexAdvice.Builder |
This builder for chaining. |
addDdlBytes(ByteString value)
public QueryAdvisorResult.IndexAdvice.Builder addDdlBytes(ByteString value)Optional. DDL statements to add new indexes that will improve the query.
repeated string ddl = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the ddl to add. |
| Returns | |
|---|---|
| Type | Description |
QueryAdvisorResult.IndexAdvice.Builder |
This builder for chaining. |
build()
public QueryAdvisorResult.IndexAdvice build()| Returns | |
|---|---|
| Type | Description |
QueryAdvisorResult.IndexAdvice |
|
buildPartial()
public QueryAdvisorResult.IndexAdvice buildPartial()| Returns | |
|---|---|
| Type | Description |
QueryAdvisorResult.IndexAdvice |
|
clear()
public QueryAdvisorResult.IndexAdvice.Builder clear()| Returns | |
|---|---|
| Type | Description |
QueryAdvisorResult.IndexAdvice.Builder |
|
clearDdl()
public QueryAdvisorResult.IndexAdvice.Builder clearDdl()Optional. DDL statements to add new indexes that will improve the query.
repeated string ddl = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
QueryAdvisorResult.IndexAdvice.Builder |
This builder for chaining. |
clearImprovementFactor()
public QueryAdvisorResult.IndexAdvice.Builder clearImprovementFactor()Optional. Estimated latency improvement factor. For example if the query currently takes 500 ms to run and the estimated latency with new indexes is 100 ms this field will be 5.
double improvement_factor = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
QueryAdvisorResult.IndexAdvice.Builder |
This builder for chaining. |
getDdl(int index)
public String getDdl(int index)Optional. DDL statements to add new indexes that will improve the query.
repeated string ddl = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The ddl at the given index. |
getDdlBytes(int index)
public ByteString getDdlBytes(int index)Optional. DDL statements to add new indexes that will improve the query.
repeated string ddl = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the ddl at the given index. |
getDdlCount()
public int getDdlCount()Optional. DDL statements to add new indexes that will improve the query.
repeated string ddl = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of ddl. |
getDdlList()
public ProtocolStringList getDdlList()Optional. DDL statements to add new indexes that will improve the query.
repeated string ddl = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the ddl. |
getDefaultInstanceForType()
public QueryAdvisorResult.IndexAdvice getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
QueryAdvisorResult.IndexAdvice |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getImprovementFactor()
public double getImprovementFactor()Optional. Estimated latency improvement factor. For example if the query currently takes 500 ms to run and the estimated latency with new indexes is 100 ms this field will be 5.
double improvement_factor = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
double |
The improvementFactor. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public QueryAdvisorResult.IndexAdvice.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
QueryAdvisorResult.IndexAdvice.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public QueryAdvisorResult.IndexAdvice.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
QueryAdvisorResult.IndexAdvice.Builder |
|
mergeFrom(QueryAdvisorResult.IndexAdvice other)
public QueryAdvisorResult.IndexAdvice.Builder mergeFrom(QueryAdvisorResult.IndexAdvice other)| Parameter | |
|---|---|
| Name | Description |
other |
QueryAdvisorResult.IndexAdvice |
| Returns | |
|---|---|
| Type | Description |
QueryAdvisorResult.IndexAdvice.Builder |
|
setDdl(int index, String value)
public QueryAdvisorResult.IndexAdvice.Builder setDdl(int index, String value)Optional. DDL statements to add new indexes that will improve the query.
repeated string ddl = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe ddl to set. |
| Returns | |
|---|---|
| Type | Description |
QueryAdvisorResult.IndexAdvice.Builder |
This builder for chaining. |
setImprovementFactor(double value)
public QueryAdvisorResult.IndexAdvice.Builder setImprovementFactor(double value)Optional. Estimated latency improvement factor. For example if the query currently takes 500 ms to run and the estimated latency with new indexes is 100 ms this field will be 5.
double improvement_factor = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
doubleThe improvementFactor to set. |
| Returns | |
|---|---|
| Type | Description |
QueryAdvisorResult.IndexAdvice.Builder |
This builder for chaining. |