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
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.
|
java.lang.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.
|
ResultSetMetadata |
getMetadata()
Metadata about the result set, such as row type information.
|
java.lang.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.
|
java.util.List<java.lang.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(java.lang.String fieldName,
java.lang.Object value) |
PartialResultSet |
setChunkedValue(java.lang.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 |
setMetadata(ResultSetMetadata metadata)
Metadata about the result set, such as row type information.
|
PartialResultSet |
setResumeToken(java.lang.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(java.util.List<java.lang.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, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.Boolean getChunkedValue()
null
for nonepublic PartialResultSet setChunkedValue(java.lang.Boolean chunkedValue)
chunkedValue
- chunkedValue or null
for nonepublic ResultSetMetadata getMetadata()
null
for nonepublic PartialResultSet setMetadata(ResultSetMetadata metadata)
metadata
- metadata or null
for nonepublic java.lang.String getResumeToken()
null
for nonedecodeResumeToken()
public byte[] decodeResumeToken()
null
for nonegetResumeToken()
public PartialResultSet setResumeToken(java.lang.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 java.util.List<java.lang.Object> getValues()
null
for nonepublic PartialResultSet setValues(java.util.List<java.lang.Object> values)
values
- values or null
for nonepublic PartialResultSet set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public PartialResultSet clone()
clone
in class com.google.api.client.json.GenericJson