PartialResultSet

com.google.spanner.v1.result_set.PartialResultSet
See thePartialResultSet companion object
final case class PartialResultSet(metadata: Option[ResultSetMetadata], values: Seq[Value], chunkedValue: Boolean, resumeToken: ByteString, stats: Option[ResultSetStats], unknownFields: UnknownFieldSet) extends GeneratedMessage, Updatable[PartialResultSet]

Partial results from a streaming read or SQL query. Streaming reads and SQL queries better tolerate large result sets, large rows, and large values, but are a little trickier to consume.

Value parameters

chunkedValue

If true, then the final value in [values][google.spanner.v1.PartialResultSet.values] is chunked, and must be combined with more values from subsequent PartialResultSets to obtain a complete field value.

metadata

Metadata about the result set, such as row type information. Only present in the first response.

resumeToken

Streaming calls might be interrupted for a variety of reasons, such as TCP connection loss. If this occurs, the stream of results can be resumed by re-sending the original request and including resume_token. Note that executing any other transaction in the same session invalidates the token.

stats

Query plan and execution statistics for the statement that produced this streaming result set. These can be requested by setting [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode] and are sent only once with the last response in the stream. This field will also be present in the last response for DML statements.

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. Every N complete values defines a row, where N is equal to the number of entries in [metadata.row_type.fields][google.spanner.v1.StructType.fields]. Most values are encoded based on type as described [here][google.spanner.v1.TypeCode]. It is possible that the last value in values is "chunked", meaning that the rest of the value is sent in subsequent PartialResultSet(s). This is denoted by the [chunked_value][google.spanner.v1.PartialResultSet.chunked_value] field. Two or more chunked values can be merged to form a complete value as follows:

Attributes

Companion
object
Source
PartialResultSet.scala
Graph
Supertypes
trait Updatable[PartialResultSet]
trait GeneratedMessage
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def addAllValues(`__vs`: Iterable[Value]): PartialResultSet

Attributes

Source
PartialResultSet.scala

Attributes

Source
PartialResultSet.scala

Attributes

Source
PartialResultSet.scala
def getField(`__field`: FieldDescriptor): PValue

Attributes

Source
PartialResultSet.scala
def getFieldByNumber(`__fieldNumber`: Int): Any

Attributes

Source
PartialResultSet.scala
override def serializedSize: Int

Attributes

Definition Classes
GeneratedMessage
Source
PartialResultSet.scala
def toProtoString: String

Returns a human-readable ASCII format representation of this message.

Returns a human-readable ASCII format representation of this message.

The original message can be decoded from this format by using fromAscii on the companion object.

Attributes

Returns

human-readable representation of this message.

Source
PartialResultSet.scala
def withChunkedValue(`__v`: Boolean): PartialResultSet

Attributes

Source
PartialResultSet.scala
def withResumeToken(`__v`: ByteString): PartialResultSet

Attributes

Source
PartialResultSet.scala
def withUnknownFields(`__v`: UnknownFieldSet): PartialResultSet

Attributes

Source
PartialResultSet.scala
def withValues(`__v`: Seq[Value]): PartialResultSet

Attributes

Source
PartialResultSet.scala
def writeTo(`_output__`: CodedOutputStream): Unit

Serializes the message into the given coded output stream

Serializes the message into the given coded output stream

Attributes

Source
PartialResultSet.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
final def toByteArray: Array[Byte]

Serializes the message and returns a byte array containing its raw bytes

Serializes the message and returns a byte array containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
final def toByteString: ByteString

Serializes the message and returns a ByteString containing its raw bytes

Serializes the message and returns a ByteString containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
final def toPMessage: PMessage

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala

Attributes

Inherited from:
Updatable
Source
Lenses.scala
final def writeDelimitedTo(output: OutputStream): Unit

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
final def writeTo(output: OutputStream): Unit

Serializes the message into the given output stream

Serializes the message into the given output stream

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala