public final class ResultSet extends GeneratedMessageV3 implements ResultSetOrBuilder
Results from Read or
ExecuteSql.
Protobuf type google.spanner.v1.ResultSet
Static Fields
public static final int METADATA_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)
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
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;
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
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 |
---|
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)
Overrides
toBuilder()
public ResultSet.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides