public final class ResultSetStats extends GeneratedMessageV3 implements ResultSetStatsOrBuilder
Additional statistics about a ResultSet or PartialResultSet.
Protobuf type google.spanner.v1.ResultSetStats
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ResultSetStats.Builder newBuilder()
newBuilder(ResultSetStats prototype)
public static ResultSetStats.Builder newBuilder(ResultSetStats prototype)
public static ResultSetStats parseDelimitedFrom(InputStream input)
public static ResultSetStats parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ResultSetStats parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ResultSetStats parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ResultSetStats parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ResultSetStats parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ResultSetStats parseFrom(CodedInputStream input)
public static ResultSetStats parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ResultSetStats parseFrom(InputStream input)
public static ResultSetStats parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ResultSetStats parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ResultSetStats parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ResultSetStats> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public ResultSetStats getDefaultInstanceForType()
getParserForType()
public Parser<ResultSetStats> getParserForType()
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;
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;
getRowCountCase()
public ResultSetStats.RowCountCase getRowCountCase()
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()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ResultSetStats.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ResultSetStats.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public ResultSetStats.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides