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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ResultSetStats.BuilderImplements
ResultSetStatsOrBuilderStatic 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 |
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 |
clearField(Descriptors.FieldDescriptor field)
public ResultSetStats.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
ResultSetStats.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public ResultSetStats.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
ResultSetStats.Builder |
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 |
getDefaultInstanceForType()
public ResultSetStats getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ResultSetStats |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 |
StructOrBuilder |
getRowCountCase()
public ResultSetStats.RowCountCase getRowCountCase()
Returns | |
---|---|
Type | Description |
ResultSetStats.RowCountCase |
getRowCountExact()
public long getRowCountExact()
Standard DML returns an exact count of rows that were modified.
int64 row_count_exact = 3;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
long | The rowCountLowerBound. |
hasQueryPlan()
public boolean hasQueryPlan()
QueryPlan for the query associated with this result.
.google.spanner.v1.QueryPlan query_plan = 1;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
boolean | Whether the rowCountLowerBound field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ResultSetStats.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ResultSetStats.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ResultSetStats.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
ResultSetStats.Builder |
mergeFrom(ResultSetStats other)
public ResultSetStats.Builder mergeFrom(ResultSetStats other)
Parameter | |
---|---|
Name | Description |
other | ResultSetStats |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | QueryPlan |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Struct |
Returns | |
---|---|
Type | Description |
ResultSetStats.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ResultSetStats.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ResultSetStats.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ResultSetStats.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
ResultSetStats.Builder |
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 | |
---|---|
Name | Description |
value | QueryPlan |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | QueryPlan.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Struct |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
ResultSetStats.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ResultSetStats.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
ResultSetStats.Builder |
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 | |
---|---|
Name | Description |
value | long The rowCountExact to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | long The rowCountLowerBound to set. |
Returns | |
---|---|
Type | Description |
ResultSetStats.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ResultSetStats.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ResultSetStats.Builder |