Class ResultSetStats (6.74.0)

public final class ResultSetStats extends GeneratedMessageV3 implements ResultSetStatsOrBuilder

Additional statistics about a ResultSet or PartialResultSet.

Protobuf type google.spanner.v1.ResultSetStats

Static Fields

QUERY_PLAN_FIELD_NUMBER

public static final int QUERY_PLAN_FIELD_NUMBER
Field Value
Type Description
int

QUERY_STATS_FIELD_NUMBER

public static final int QUERY_STATS_FIELD_NUMBER
Field Value
Type Description
int

ROW_COUNT_EXACT_FIELD_NUMBER

public static final int ROW_COUNT_EXACT_FIELD_NUMBER
Field Value
Type Description
int

ROW_COUNT_LOWER_BOUND_FIELD_NUMBER

public static final int ROW_COUNT_LOWER_BOUND_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ResultSetStats getDefaultInstance()
Returns
Type Description
ResultSetStats

getDescriptor()

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

newBuilder()

public static ResultSetStats.Builder newBuilder()
Returns
Type Description
ResultSetStats.Builder

newBuilder(ResultSetStats prototype)

public static ResultSetStats.Builder newBuilder(ResultSetStats prototype)
Parameter
Name Description
prototype ResultSetStats
Returns
Type Description
ResultSetStats.Builder

parseDelimitedFrom(InputStream input)

public static ResultSetStats parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ResultSetStats
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ResultSetStats parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResultSetStats
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ResultSetStats parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ResultSetStats
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ResultSetStats parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResultSetStats
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ResultSetStats parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ResultSetStats
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ResultSetStats parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResultSetStats
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ResultSetStats parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ResultSetStats
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ResultSetStats parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResultSetStats
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ResultSetStats parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ResultSetStats
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ResultSetStats parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResultSetStats
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ResultSetStats parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ResultSetStats
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ResultSetStats parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResultSetStats
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ResultSetStats> parser()
Returns
Type Description
Parser<ResultSetStats>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ResultSetStats getDefaultInstanceForType()
Returns
Type Description
ResultSetStats

getParserForType()

public Parser<ResultSetStats> getParserForType()
Returns
Type Description
Parser<ResultSetStats>
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.

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.

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ResultSetStats.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ResultSetStats.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException