public final class PartialResultSet
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 |
---|
PartialResultSet() |
Modifier and Type | Method and Description |
---|---|
PartialResultSet |
clone() |
byte[] |
decodeResumeToken()
Streaming calls might be interrupted for a variety of reasons, such as TCP connection loss.
|
PartialResultSet |
encodeResumeToken(byte[] resumeToken)
Streaming calls might be interrupted for a variety of reasons, such as TCP connection loss.
|
Boolean |
getChunkedValue()
If true, then the final value in values is chunked, and must be combined with more values from
subsequent `PartialResultSet`s to obtain a complete field value.
|
Boolean |
getLast()
Optional.
|
ResultSetMetadata |
getMetadata()
Metadata about the result set, such as row type information.
|
MultiplexedSessionPrecommitToken |
getPrecommitToken()
Optional.
|
String |
getResumeToken()
Streaming calls might be interrupted for a variety of reasons, such as TCP connection loss.
|
ResultSetStats |
getStats()
Query plan and execution statistics for the statement that produced this streaming result set.
|
List<Object> |
getValues()
A streamed result set consists of a stream of values, which might be split into many
`PartialResultSet` messages to accommodate large rows and/or large values.
|
PartialResultSet |
set(String fieldName,
Object value) |
PartialResultSet |
setChunkedValue(Boolean chunkedValue)
If true, then the final value in values is chunked, and must be combined with more values from
subsequent `PartialResultSet`s to obtain a complete field value.
|
PartialResultSet |
setLast(Boolean last)
Optional.
|
PartialResultSet |
setMetadata(ResultSetMetadata metadata)
Metadata about the result set, such as row type information.
|
PartialResultSet |
setPrecommitToken(MultiplexedSessionPrecommitToken precommitToken)
Optional.
|
PartialResultSet |
setResumeToken(String resumeToken)
Streaming calls might be interrupted for a variety of reasons, such as TCP connection loss.
|
PartialResultSet |
setStats(ResultSetStats stats)
Query plan and execution statistics for the statement that produced this streaming result set.
|
PartialResultSet |
setValues(List<Object> values)
A streamed result set consists of a stream of values, which might be split into many
`PartialResultSet` messages to accommodate large rows and/or large values.
|
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 Boolean getChunkedValue()
null
for nonepublic PartialResultSet setChunkedValue(Boolean chunkedValue)
chunkedValue
- chunkedValue or null
for nonepublic Boolean getLast()
null
for nonepublic PartialResultSet setLast(Boolean last)
last
- last or null
for nonepublic ResultSetMetadata getMetadata()
null
for nonepublic PartialResultSet setMetadata(ResultSetMetadata metadata)
metadata
- metadata or null
for nonepublic MultiplexedSessionPrecommitToken getPrecommitToken()
null
for nonepublic PartialResultSet setPrecommitToken(MultiplexedSessionPrecommitToken precommitToken)
precommitToken
- precommitToken or null
for nonepublic String getResumeToken()
null
for nonedecodeResumeToken()
public byte[] decodeResumeToken()
null
for nonegetResumeToken()
public PartialResultSet setResumeToken(String resumeToken)
resumeToken
- resumeToken or null
for none#encodeResumeToken()
public PartialResultSet encodeResumeToken(byte[] resumeToken)
The value is encoded Base64 or {@code null} for none.
public ResultSetStats getStats()
null
for nonepublic PartialResultSet setStats(ResultSetStats stats)
stats
- stats or null
for nonepublic List<Object> getValues()
null
for nonepublic PartialResultSet setValues(List<Object> values)
values
- values or null
for nonepublic PartialResultSet set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public PartialResultSet clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.