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
QUERY_STATS_FIELD_NUMBER
public static final int QUERY_STATS_FIELD_NUMBER
Field Value
ROW_COUNT_EXACT_FIELD_NUMBER
public static final int ROW_COUNT_EXACT_FIELD_NUMBER
Field Value
ROW_COUNT_LOWER_BOUND_FIELD_NUMBER
public static final int ROW_COUNT_LOWER_BOUND_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ResultSetStats getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ResultSetStats.Builder newBuilder()
Returns
newBuilder(ResultSetStats prototype)
public static ResultSetStats.Builder newBuilder(ResultSetStats prototype)
Parameter
Returns
public static ResultSetStats parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ResultSetStats parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ResultSetStats parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ResultSetStats parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ResultSetStats parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ResultSetStats parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ResultSetStats parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ResultSetStats parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ResultSetStats parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ResultSetStats parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ResultSetStats parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ResultSetStats parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ResultSetStats> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public ResultSetStats getDefaultInstanceForType()
Returns
getParserForType()
public Parser<ResultSetStats> getParserForType()
Returns
Overrides
getQueryPlan()
public QueryPlan getQueryPlan()
QueryPlan for the query associated with this result.
.google.spanner.v1.QueryPlan query_plan = 1;
Returns
getQueryPlanOrBuilder()
public QueryPlanOrBuilder getQueryPlanOrBuilder()
QueryPlan for the query associated with this result.
.google.spanner.v1.QueryPlan query_plan = 1;
Returns
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
getRowCountCase()
public ResultSetStats.RowCountCase getRowCountCase()
Returns
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
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ResultSetStats.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ResultSetStats.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ResultSetStats.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions