Interface QueryAdvisorResult.IndexAdviceOrBuilder (6.107.0)

public static interface QueryAdvisorResult.IndexAdviceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDdl(int index)

public abstract 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 int

The index of the element to return.

Returns
Type Description
String

The ddl at the given index.

getDdlBytes(int index)

public abstract 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 int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the ddl at the given index.

getDdlCount()

public abstract 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 abstract List<String> 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
List<String>

A list containing the ddl.

getImprovementFactor()

public abstract 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.