Class ResultSetStats.Builder (6.49.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ResultSetStats.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ResultSetStats.Builder
Overrides

build()

public ResultSetStats build()
Returns
TypeDescription
ResultSetStats

buildPartial()

public ResultSetStats buildPartial()
Returns
TypeDescription
ResultSetStats

clear()

public ResultSetStats.Builder clear()
Returns
TypeDescription
ResultSetStats.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ResultSetStats.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ResultSetStats.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ResultSetStats.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ResultSetStats.Builder
Overrides

clearQueryPlan()

public ResultSetStats.Builder clearQueryPlan()

QueryPlan for the query associated with this result.

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

Returns
TypeDescription
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
TypeDescription
ResultSetStats.Builder

clearRowCount()

public ResultSetStats.Builder clearRowCount()
Returns
TypeDescription
ResultSetStats.Builder

clearRowCountExact()

public ResultSetStats.Builder clearRowCountExact()

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

int64 row_count_exact = 3;

Returns
TypeDescription
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
TypeDescription
ResultSetStats.Builder

This builder for chaining.

clone()

public ResultSetStats.Builder clone()
Returns
TypeDescription
ResultSetStats.Builder
Overrides

getDefaultInstanceForType()

public ResultSetStats getDefaultInstanceForType()
Returns
TypeDescription
ResultSetStats

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getQueryPlan()

public QueryPlan getQueryPlan()

QueryPlan for the query associated with this result.

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

Returns
TypeDescription
QueryPlan

The queryPlan.

getQueryPlanBuilder()

public QueryPlan.Builder getQueryPlanBuilder()

QueryPlan for the query associated with this result.

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

Returns
TypeDescription
QueryPlan.Builder

getQueryPlanOrBuilder()

public QueryPlanOrBuilder getQueryPlanOrBuilder()

QueryPlan for the query associated with this result.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
StructOrBuilder

getRowCountCase()

public ResultSetStats.RowCountCase getRowCountCase()
Returns
TypeDescription
ResultSetStats.RowCountCase

getRowCountExact()

public long getRowCountExact()

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

int64 row_count_exact = 3;

Returns
TypeDescription
long

The rowCountExact.

getRowCountLowerBound()

public long getRowCountLowerBound()

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
TypeDescription
long

The rowCountLowerBound.

hasQueryPlan()

public boolean hasQueryPlan()

QueryPlan for the query associated with this result.

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

Returns
TypeDescription
boolean

Whether the queryPlan field is set.

hasQueryStats()

public boolean hasQueryStats()

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
TypeDescription
boolean

Whether the queryStats field is set.

hasRowCountExact()

public boolean hasRowCountExact()

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

int64 row_count_exact = 3;

Returns
TypeDescription
boolean

Whether the rowCountExact field is set.

hasRowCountLowerBound()

public boolean hasRowCountLowerBound()

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
TypeDescription
boolean

Whether the rowCountLowerBound field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ResultSetStats.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResultSetStats.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ResultSetStats.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ResultSetStats.Builder
Overrides

mergeFrom(ResultSetStats other)

public ResultSetStats.Builder mergeFrom(ResultSetStats other)
Parameter
NameDescription
otherResultSetStats
Returns
TypeDescription
ResultSetStats.Builder

mergeQueryPlan(QueryPlan value)

public ResultSetStats.Builder mergeQueryPlan(QueryPlan value)

QueryPlan for the query associated with this result.

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

Parameter
NameDescription
valueQueryPlan
Returns
TypeDescription
ResultSetStats.Builder

mergeQueryStats(Struct value)

public ResultSetStats.Builder mergeQueryStats(Struct value)

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;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
ResultSetStats.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResultSetStats.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ResultSetStats.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ResultSetStats.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ResultSetStats.Builder
Overrides

setQueryPlan(QueryPlan value)

public ResultSetStats.Builder setQueryPlan(QueryPlan value)

QueryPlan for the query associated with this result.

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

Parameter
NameDescription
valueQueryPlan
Returns
TypeDescription
ResultSetStats.Builder

setQueryPlan(QueryPlan.Builder builderForValue)

public ResultSetStats.Builder setQueryPlan(QueryPlan.Builder builderForValue)

QueryPlan for the query associated with this result.

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

Parameter
NameDescription
builderForValueQueryPlan.Builder
Returns
TypeDescription
ResultSetStats.Builder

setQueryStats(Struct value)

public ResultSetStats.Builder setQueryStats(Struct value)

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;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
ResultSetStats.Builder

setQueryStats(Struct.Builder builderForValue)

public ResultSetStats.Builder setQueryStats(Struct.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ResultSetStats.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ResultSetStats.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ResultSetStats.Builder
Overrides

setRowCountExact(long value)

public ResultSetStats.Builder setRowCountExact(long value)

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

int64 row_count_exact = 3;

Parameter
NameDescription
valuelong

The rowCountExact to set.

Returns
TypeDescription
ResultSetStats.Builder

This builder for chaining.

setRowCountLowerBound(long value)

public ResultSetStats.Builder setRowCountLowerBound(long value)

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

int64 row_count_lower_bound = 4;

Parameter
NameDescription
valuelong

The rowCountLowerBound to set.

Returns
TypeDescription
ResultSetStats.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ResultSetStats.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ResultSetStats.Builder
Overrides