Send feedback
Class ResultSet (6.69.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 6.69.0 keyboard_arrow_down
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
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
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.
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-24 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-09-24 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-24 UTC."],[],[]]