Package com.google.spanner.v1
Class ResultSetStats
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.spanner.v1.ResultSetStats
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ResultSetStatsOrBuilder,Serializable
public final class ResultSetStats extends com.google.protobuf.GeneratedMessageV3 implements ResultSetStatsOrBuilder
Additional statistics about a [ResultSet][google.spanner.v1.ResultSet] or [PartialResultSet][google.spanner.v1.PartialResultSet].
Protobuf typegoogle.spanner.v1.ResultSetStats- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResultSetStats.BuilderAdditional statistics about a [ResultSet][google.spanner.v1.ResultSet] or [PartialResultSet][google.spanner.v1.PartialResultSet].static classResultSetStats.RowCountCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intQUERY_PLAN_FIELD_NUMBERstatic intQUERY_STATS_FIELD_NUMBERstatic intROW_COUNT_EXACT_FIELD_NUMBERstatic intROW_COUNT_LOWER_BOUND_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static ResultSetStatsgetDefaultInstance()ResultSetStatsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Parser<ResultSetStats>getParserForType()QueryPlangetQueryPlan()[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.QueryPlanOrBuildergetQueryPlanOrBuilder()[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.com.google.protobuf.StructgetQueryStats()Aggregated statistics from the execution of the query.com.google.protobuf.StructOrBuildergetQueryStatsOrBuilder()Aggregated statistics from the execution of the query.ResultSetStats.RowCountCasegetRowCountCase()longgetRowCountExact()Standard DML returns an exact count of rows that were modified.longgetRowCountLowerBound()Partitioned DML does not offer exactly-once semantics, so it returns a lower bound of the rows modified.intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()booleanhasQueryPlan()[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.booleanhasQueryStats()Aggregated statistics from the execution of the query.booleanhasRowCountExact()Standard DML returns an exact count of rows that were modified.booleanhasRowCountLowerBound()Partitioned DML does not offer exactly-once semantics, so it returns a lower bound of the rows modified.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static ResultSetStats.BuildernewBuilder()static ResultSetStats.BuildernewBuilder(ResultSetStats prototype)ResultSetStats.BuildernewBuilderForType()protected ResultSetStats.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ResultSetStatsparseDelimitedFrom(InputStream input)static ResultSetStatsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ResultSetStatsparseFrom(byte[] data)static ResultSetStatsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ResultSetStatsparseFrom(com.google.protobuf.ByteString data)static ResultSetStatsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ResultSetStatsparseFrom(com.google.protobuf.CodedInputStream input)static ResultSetStatsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ResultSetStatsparseFrom(InputStream input)static ResultSetStatsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ResultSetStatsparseFrom(ByteBuffer data)static ResultSetStatsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<ResultSetStats>parser()ResultSetStats.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
QUERY_PLAN_FIELD_NUMBER
public static final int QUERY_PLAN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
QUERY_STATS_FIELD_NUMBER
public static final int QUERY_STATS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ROW_COUNT_EXACT_FIELD_NUMBER
public static final int ROW_COUNT_EXACT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ROW_COUNT_LOWER_BOUND_FIELD_NUMBER
public static final int ROW_COUNT_LOWER_BOUND_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getRowCountCase
public ResultSetStats.RowCountCase getRowCountCase()
- Specified by:
getRowCountCasein interfaceResultSetStatsOrBuilder
-
hasQueryPlan
public boolean hasQueryPlan()
[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.
.google.spanner.v1.QueryPlan query_plan = 1;- Specified by:
hasQueryPlanin interfaceResultSetStatsOrBuilder- Returns:
- Whether the queryPlan field is set.
-
getQueryPlan
public QueryPlan getQueryPlan()
[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.
.google.spanner.v1.QueryPlan query_plan = 1;- Specified by:
getQueryPlanin interfaceResultSetStatsOrBuilder- Returns:
- The queryPlan.
-
getQueryPlanOrBuilder
public QueryPlanOrBuilder getQueryPlanOrBuilder()
[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.
.google.spanner.v1.QueryPlan query_plan = 1;- Specified by:
getQueryPlanOrBuilderin interfaceResultSetStatsOrBuilder
-
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;- Specified by:
hasQueryStatsin interfaceResultSetStatsOrBuilder- Returns:
- Whether the queryStats field is set.
-
getQueryStats
public com.google.protobuf.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;- Specified by:
getQueryStatsin interfaceResultSetStatsOrBuilder- Returns:
- The queryStats.
-
getQueryStatsOrBuilder
public com.google.protobuf.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;- Specified by:
getQueryStatsOrBuilderin interfaceResultSetStatsOrBuilder
-
hasRowCountExact
public boolean hasRowCountExact()
Standard DML returns an exact count of rows that were modified.
int64 row_count_exact = 3;- Specified by:
hasRowCountExactin interfaceResultSetStatsOrBuilder- Returns:
- Whether the rowCountExact field is set.
-
getRowCountExact
public long getRowCountExact()
Standard DML returns an exact count of rows that were modified.
int64 row_count_exact = 3;- Specified by:
getRowCountExactin interfaceResultSetStatsOrBuilder- Returns:
- The rowCountExact.
-
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;- Specified by:
hasRowCountLowerBoundin interfaceResultSetStatsOrBuilder- Returns:
- Whether the rowCountLowerBound field is set.
-
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;- Specified by:
getRowCountLowerBoundin interfaceResultSetStatsOrBuilder- Returns:
- The rowCountLowerBound.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ResultSetStats parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResultSetStats parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResultSetStats parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResultSetStats parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResultSetStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResultSetStats parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResultSetStats parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ResultSetStats parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ResultSetStats parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ResultSetStats parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static ResultSetStats parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ResultSetStats parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public ResultSetStats.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ResultSetStats.Builder newBuilder()
-
newBuilder
public static ResultSetStats.Builder newBuilder(ResultSetStats prototype)
-
toBuilder
public ResultSetStats.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ResultSetStats.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ResultSetStats getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ResultSetStats> parser()
-
getParserForType
public com.google.protobuf.Parser<ResultSetStats> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ResultSetStats getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-