Class ResultSetStats.Builder (6.77.0)

public static final class ResultSetStats.Builder extends GeneratedMessageV3.Builder<ResultSetStats.Builder> implements ResultSetStatsOrBuilder

Additional statistics about a ResultSet or PartialResultSet.

Protobuf type google.spanner.v1.ResultSetStats

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ResultSetStats.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ResultSetStats.Builder
Overrides

build()

public ResultSetStats build()
Returns
Type Description
ResultSetStats

buildPartial()

public ResultSetStats buildPartial()
Returns
Type Description
ResultSetStats

clear()

public ResultSetStats.Builder clear()
Returns
Type Description
ResultSetStats.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ResultSetStats.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ResultSetStats.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ResultSetStats.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ResultSetStats.Builder
Overrides

clearQueryPlan()

public ResultSetStats.Builder clearQueryPlan()

QueryPlan for the query associated with this result.

.google.spanner.v1.QueryPlan query_plan = 1;

Returns
Type Description
ResultSetStats.Builder

clearQueryStats()

public ResultSetStats.Builder clearQueryStats()

Aggregated statistics from the execution of the query. Only present when the query is profiled. For example, a query could return the statistics as follows:

 {
   "rows_returned": "3",
   "elapsed_time": "1.22 secs",
   "cpu_time": "1.19 secs"
 }

.google.protobuf.Struct query_stats = 2;

Returns
Type Description
ResultSetStats.Builder

clearRowCount()

public ResultSetStats.Builder clearRowCount()
Returns
Type Description
ResultSetStats.Builder

clearRowCountExact()

public ResultSetStats.Builder clearRowCountExact()

Standard DML returns an exact count of rows that were modified.

int64 row_count_exact = 3;

Returns
Type Description
ResultSetStats.Builder

This builder for chaining.

clearRowCountLowerBound()

public ResultSetStats.Builder clearRowCountLowerBound()

Partitioned DML does not offer exactly-once semantics, so it returns a lower bound of the rows modified.

int64 row_count_lower_bound = 4;

Returns
Type Description
ResultSetStats.Builder

This builder for chaining.

clone()

public ResultSetStats.Builder clone()
Returns
Type Description
ResultSetStats.Builder
Overrides

getDefaultInstanceForType()

public ResultSetStats getDefaultInstanceForType()
Returns
Type Description
ResultSetStats

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getQueryPlan()

public QueryPlan getQueryPlan()

QueryPlan for the query associated with this result.

.google.spanner.v1.QueryPlan query_plan = 1;

Returns
Type Description
QueryPlan

The queryPlan.

getQueryPlanBuilder()

public QueryPlan.Builder getQueryPlanBuilder()

QueryPlan for the query associated with this result.

.google.spanner.v1.QueryPlan query_plan = 1;

Returns
Type Description
QueryPlan.Builder

getQueryPlanOrBuilder()

public QueryPlanOrBuilder getQueryPlanOrBuilder()

QueryPlan for the query associated with this result.

.google.spanner.v1.QueryPlan query_plan = 1;

Returns
Type Description
QueryPlanOrBuilder

getQueryStats()

public Struct getQueryStats()

Aggregated statistics from the execution of the query. Only present when the query is profiled. For example, a query could return the statistics as follows:

 {
   "rows_returned": "3",
   "elapsed_time": "1.22 secs",
   "cpu_time": "1.19 secs"
 }

.google.protobuf.Struct query_stats = 2;

Returns
Type Description
Struct

The queryStats.

getQueryStatsBuilder()

public Struct.Builder getQueryStatsBuilder()

Aggregated statistics from the execution of the query. Only present when the query is profiled. For example, a query could return the statistics as follows:

 {
   "rows_returned": "3",
   "elapsed_time": "1.22 secs",
   "cpu_time": "1.19 secs"
 }

.google.protobuf.Struct query_stats = 2;

Returns
Type Description
Builder

getQueryStatsOrBuilder()

public StructOrBuilder getQueryStatsOrBuilder()

Aggregated statistics from the execution of the query. Only present when the query is profiled. For example, a query could return the statistics as follows:

 {
   "rows_returned": "3",
   "elapsed_time": "1.22 secs",
   "cpu_time": "1.19 secs"
 }

.google.protobuf.Struct query_stats = 2;

Returns
Type Description