ResultSet

com.google.spanner.v1.result_set.ResultSet
See theResultSet companion object
final case class ResultSet(metadata: Option[ResultSetMetadata], rows: Seq[ListValue], stats: Option[ResultSetStats], unknownFields: UnknownFieldSet) extends GeneratedMessage, Updatable[ResultSet]

Results from [Read][google.spanner.v1.Spanner.Read] or [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql].

Value parameters

metadata

Metadata about the result set, such as row type information.

rows

Each element in rows is a row whose format is defined by [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element in each row matches the ith field in [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are encoded based on type as described [here][google.spanner.v1.TypeCode].

stats

Query plan and execution statistics for the SQL statement that produced this result set. These can be requested by setting [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode]. DML statements always produce stats containing the number of rows modified, unless executed using the [ExecuteSqlRequest.QueryMode.PLAN][google.spanner.v1.ExecuteSqlRequest.QueryMode.PLAN] [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode]. Other fields may or may not be populated, based on the [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].

Attributes

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

Members list

Value members

Concrete methods

def addAllRows(`__vs`: Iterable[ListValue]): ResultSet

Attributes

Source
ResultSet.scala
def addRows(`__vs`: ListValue*): ResultSet

Attributes

Source
ResultSet.scala

Attributes

Source
ResultSet.scala

Attributes

Source
ResultSet.scala

Attributes

Source
ResultSet.scala
def companion: ResultSet.type

Attributes

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

Attributes

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

Attributes

Source
ResultSet.scala

Attributes

Source
ResultSet.scala
override def serializedSize: Int

Attributes

Definition Classes
GeneratedMessage
Source
ResultSet.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
ResultSet.scala

Attributes

Source
ResultSet.scala
def withRows(`__v`: Seq[ListValue]): ResultSet

Attributes

Source
ResultSet.scala

Attributes

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

Attributes

Source
ResultSet.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
ResultSet.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
def update(ms: Lens[ResultSet, ResultSet] => () => ResultSet*): A

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