public final class ResultSet extends GeneratedMessageV3 implements ResultSetOrBuilder
Results from Read or
ExecuteSql.
Protobuf type google.spanner.v1.ResultSet
Fields
public static final int METADATA_FIELD_NUMBER
Field Value
ROWS_FIELD_NUMBER
public static final int ROWS_FIELD_NUMBER
Field Value
STATS_FIELD_NUMBER
public static final int STATS_FIELD_NUMBER
Field Value
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstance()
public static ResultSet getDefaultInstance()
Returns
getDefaultInstanceForType()
public ResultSet getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
public ResultSetMetadata getMetadata()
Metadata about the result set, such as row type information.
.google.spanner.v1.ResultSetMetadata metadata = 1;
Returns
public ResultSetMetadataOrBuilder getMetadataOrBuilder()
Metadata about the result set, such as row type information.
.google.spanner.v1.ResultSetMetadata metadata = 1;
Returns
getParserForType()
public Parser<ResultSet> getParserForType()
Returns
Overrides
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
Returns
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
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;
Returns
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
Returns
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
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;
Returns
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;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
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
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static ResultSet.Builder newBuilder()
Returns
newBuilder(ResultSet prototype)
public static ResultSet.Builder newBuilder(ResultSet prototype)
Parameter
Returns
newBuilderForType()
public ResultSet.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ResultSet.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static ResultSet parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ResultSet parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ResultSet parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ResultSet parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ResultSet parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ResultSet parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ResultSet parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ResultSet parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ResultSet parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ResultSet parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ResultSet parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ResultSet parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ResultSet> parser()
Returns
toBuilder()
public ResultSet.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions