public final class ResultSet extends GeneratedMessageV3 implements ResultSetOrBuilder
Results from Read or
ExecuteSql.
Protobuf type google.spanner.v1.ResultSet
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>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int METADATA_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
PRECOMMIT_TOKEN_FIELD_NUMBER
public static final int PRECOMMIT_TOKEN_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
ROWS_FIELD_NUMBER
public static final int ROWS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
STATS_FIELD_NUMBER
public static final int STATS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static ResultSet getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ResultSet.Builder newBuilder()
newBuilder(ResultSet prototype)
public static ResultSet.Builder newBuilder(ResultSet prototype)
Parameter |
Name |
Description |
prototype |
ResultSet
|
public static ResultSet parseDelimitedFrom(InputStream input)
public static ResultSet parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ResultSet parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ResultSet parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ResultSet parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ResultSet parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ResultSet parseFrom(CodedInputStream input)
public static ResultSet parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ResultSet parseFrom(InputStream input)
public static ResultSet parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ResultSet parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ResultSet parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ResultSet> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public ResultSet getDefaultInstanceForType()
public ResultSetMetadata getMetadata()
Metadata about the result set, such as row type information.
.google.spanner.v1.ResultSetMetadata metadata = 1;
public ResultSetMetadataOrBuilder getMetadataOrBuilder()
Metadata about the result set, such as row type information.
.google.spanner.v1.ResultSetMetadata metadata = 1;
getParserForType()
public Parser<ResultSet> getParserForType()
Overrides
getPrecommitToken()
public MultiplexedSessionPrecommitToken getPrecommitToken()
Optional. A precommit token will be included if the read-write transaction
is on a multiplexed session.
The precommit token with the highest sequence number from this transaction
attempt should be passed to the
Commit request for this transaction.
This feature is not yet supported and will result in an UNIMPLEMENTED
error.
.google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 5 [(.google.api.field_behavior) = OPTIONAL];
getPrecommitTokenOrBuilder()
public MultiplexedSessionPrecommitTokenOrBuilder getPrecommitTokenOrBuilder()
Optional. A precommit token will be included if the read-write transaction
is on a multiplexed session.
The precommit token with the highest sequence number from this transaction
attempt should be passed to the
Commit request for this transaction.
This feature is not yet supported and will result in an UNIMPLEMENTED
error.
.google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 5 [(.google.api.field_behavior) = OPTIONAL];
getRows(int index)
public ListValue getRows(int index)
Each element in rows
is a row whose format is defined by
metadata.row_type. The ith element
in each row matches the ith field in
metadata.row_type. Elements are
encoded based on type as described
here.
repeated .google.protobuf.ListValue rows = 2;
Parameter |
Name |
Description |
index |
int
|
getRowsCount()
public int getRowsCount()
Each element in rows
is a row whose format is defined by
metadata.row_type. The ith element
in each row matches the ith field in
metadata.row_type. Elements are
encoded based on type as described
here.
repeated .google.protobuf.ListValue rows = 2;
Returns |
Type |
Description |
int |
|
getRowsList()
public List<ListValue> getRowsList()
Each element in rows
is a row whose format is defined by
metadata.row_type. The ith element
in each row matches the ith field in
metadata.row_type. Elements are
encoded based on type as described
here.
repeated .google.protobuf.ListValue rows = 2;
getRowsOrBuilder(int index)
public ListValueOrBuilder getRowsOrBuilder(int index)
Each element in rows
is a row whose format is defined by
metadata.row_type. The ith element
in each row matches the ith field in
metadata.row_type. Elements are
encoded based on type as described
here.
repeated .google.protobuf.ListValue rows = 2;
Parameter |
Name |
Description |
index |
int
|
getRowsOrBuilderList()
public List<? extends ListValueOrBuilder> getRowsOrBuilderList()
Each element in rows
is a row whose format is defined by
metadata.row_type. The ith element
in each row matches the ith field in
metadata.row_type. Elements are
encoded based on type as described
here.
repeated .google.protobuf.ListValue rows = 2;
Returns |
Type |
Description |
List<? extends com.google.protobuf.ListValueOrBuilder> |
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getStats()
public ResultSetStats getStats()
Query plan and execution statistics for the SQL statement that
produced this result set. These can be requested by setting
ExecuteSqlRequest.query_mode.
DML statements always produce stats containing the number of rows
modified, unless executed using the
ExecuteSqlRequest.QueryMode.PLAN ExecuteSqlRequest.query_mode.
Other fields may or may not be populated, based on the
ExecuteSqlRequest.query_mode.
.google.spanner.v1.ResultSetStats stats = 3;
getStatsOrBuilder()
public ResultSetStatsOrBuilder getStatsOrBuilder()
Query plan and execution statistics for the SQL statement that
produced this result set. These can be requested by setting
ExecuteSqlRequest.query_mode.
DML statements always produce stats containing the number of rows
modified, unless executed using the
ExecuteSqlRequest.QueryMode.PLAN ExecuteSqlRequest.query_mode.
Other fields may or may not be populated, based on the
ExecuteSqlRequest.query_mode.
.google.spanner.v1.ResultSetStats stats = 3;
public boolean hasMetadata()
Metadata about the result set, such as row type information.
.google.spanner.v1.ResultSetMetadata metadata = 1;
Returns |
Type |
Description |
boolean |
Whether the metadata field is set.
|
hasPrecommitToken()
public boolean hasPrecommitToken()
Optional. A precommit token will be included if the read-write transaction
is on a multiplexed session.
The precommit token with the highest sequence number from this transaction
attempt should be passed to the
Commit request for this transaction.
This feature is not yet supported and will result in an UNIMPLEMENTED
error.
.google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the precommitToken field is set.
|
hasStats()
public boolean hasStats()
Query plan and execution statistics for the SQL statement that
produced this result set. These can be requested by setting
ExecuteSqlRequest.query_mode.
DML statements always produce stats containing the number of rows
modified, unless executed using the
ExecuteSqlRequest.QueryMode.PLAN ExecuteSqlRequest.query_mode.
Other fields may or may not be populated, based on the
ExecuteSqlRequest.query_mode.
.google.spanner.v1.ResultSetStats stats = 3;
Returns |
Type |
Description |
boolean |
Whether the stats field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ResultSet.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ResultSet.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public ResultSet.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides