Interface ResultSetStatsOrBuilder (6.53.0)

public interface ResultSetStatsOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getQueryPlan()

public abstract QueryPlan getQueryPlan()

QueryPlan for the query associated with this result.

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

Returns
TypeDescription
QueryPlan

The queryPlan.

getQueryPlanOrBuilder()

public abstract QueryPlanOrBuilder getQueryPlanOrBuilder()

QueryPlan for the query associated with this result.

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

Returns
TypeDescription
QueryPlanOrBuilder

getQueryStats()

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

getQueryStatsOrBuilder()

public abstract 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 abstract ResultSetStats.RowCountCase getRowCountCase()
Returns
TypeDescription
ResultSetStats.RowCountCase

getRowCountExact()

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