public final class ResultSet
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Spanner API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ResultSet() |
Modifier and Type | Method and Description |
---|---|
ResultSet |
clone() |
ResultSetMetadata |
getMetadata()
Metadata about the result set, such as row type information.
|
MultiplexedSessionPrecommitToken |
getPrecommitToken()
Optional.
|
List<List<Object>> |
getRows()
Each element in `rows` is a row whose format is defined by metadata.row_type.
|
ResultSetStats |
getStats()
Query plan and execution statistics for the SQL statement that produced this result set.
|
ResultSet |
set(String fieldName,
Object value) |
ResultSet |
setMetadata(ResultSetMetadata metadata)
Metadata about the result set, such as row type information.
|
ResultSet |
setPrecommitToken(MultiplexedSessionPrecommitToken precommitToken)
Optional.
|
ResultSet |
setRows(List<List<Object>> rows)
Each element in `rows` is a row whose format is defined by metadata.row_type.
|
ResultSet |
setStats(ResultSetStats stats)
Query plan and execution statistics for the SQL statement that produced this result set.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public ResultSetMetadata getMetadata()
null
for nonepublic ResultSet setMetadata(ResultSetMetadata metadata)
metadata
- metadata or null
for nonepublic MultiplexedSessionPrecommitToken getPrecommitToken()
null
for nonepublic ResultSet setPrecommitToken(MultiplexedSessionPrecommitToken precommitToken)
precommitToken
- precommitToken or null
for nonepublic List<List<Object>> getRows()
null
for nonepublic ResultSet setRows(List<List<Object>> rows)
rows
- rows or null
for nonepublic ResultSetStats getStats()
null
for nonepublic ResultSet setStats(ResultSetStats stats)
stats
- stats or null
for nonepublic ResultSet set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public ResultSet clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.