ReadRequest

com.google.spanner.v1.spanner.ReadRequest
See theReadRequest companion object
final case class ReadRequest(session: String, transaction: Option[TransactionSelector], table: String, index: String, columns: Seq[String], keySet: Option[KeySet], limit: Long, resumeToken: ByteString, partitionToken: ByteString, requestOptions: Option[RequestOptions], dataBoostEnabled: Boolean, unknownFields: UnknownFieldSet) extends GeneratedMessage, Updatable[ReadRequest]

The request for [Read][google.spanner.v1.Spanner.Read] and [StreamingRead][google.spanner.v1.Spanner.StreamingRead].

Value parameters

columns

Required. The columns of [table][google.spanner.v1.ReadRequest.table] to be returned for each row matching this request.

dataBoostEnabled

If this is for a partitioned read and this field is set to true, the request will be executed via Spanner independent compute resources. If the field is set to true but the request does not set partition_token, the API will return an INVALID_ARGUMENT error.

index

If non-empty, the name of an index on [table][google.spanner.v1.ReadRequest.table]. This index is used instead of the table primary key when interpreting [key_set][google.spanner.v1.ReadRequest.key_set] and sorting result rows. See [key_set][google.spanner.v1.ReadRequest.key_set] for further information.

keySet

Required. key_set identifies the rows to be yielded. key_set names the primary keys of the rows in [table][google.spanner.v1.ReadRequest.table] to be yielded, unless [index][google.spanner.v1.ReadRequest.index] is present. If [index][google.spanner.v1.ReadRequest.index] is present, then [key_set][google.spanner.v1.ReadRequest.key_set] instead names index keys in [index][google.spanner.v1.ReadRequest.index]. If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is empty, rows are yielded in table primary key order (if [index][google.spanner.v1.ReadRequest.index] is empty) or index key order (if [index][google.spanner.v1.ReadRequest.index] is non-empty). If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is not empty, rows will be yielded in an unspecified order. It is not an error for the key_set to name rows that do not exist in the database. Read yields nothing for nonexistent rows.

limit

If greater than zero, only the first limit rows are yielded. If limit is zero, the default is no limit. A limit cannot be specified if partition_token is set.

partitionToken

If present, results will be restricted to the specified partition previously created using PartitionRead(). There must be an exact match for the values of fields common to this message and the PartitionReadRequest message used to create this partition_token.

requestOptions

Common options for this request.

resumeToken

If this request is resuming a previously interrupted read, resume_token should be copied from the last [PartialResultSet][google.spanner.v1.PartialResultSet] yielded before the interruption. Doing this enables the new read to resume where the last read left off. The rest of the request parameters must exactly match the request that yielded this token.

session

Required. The session in which the read should be performed.

table

Required. The name of the table in the database to be read.

transaction

The transaction to use. If none is provided, the default is a temporary read-only transaction with strong concurrency.

Attributes

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

Members list

Value members

Concrete methods

def addAllColumns(`__vs`: Iterable[String]): ReadRequest

Attributes

Source
ReadRequest.scala
def addColumns(`__vs`: String*): ReadRequest

Attributes

Source
ReadRequest.scala

Attributes

Source
ReadRequest.scala

Attributes

Source
ReadRequest.scala

Attributes

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

Attributes

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

Attributes

Source
ReadRequest.scala

Attributes

Source
ReadRequest.scala
override def serializedSize: Int

Attributes

Definition Classes
GeneratedMessage
Source
ReadRequest.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
ReadRequest.scala
def withColumns(`__v`: Seq[String]): ReadRequest

Attributes

Source
ReadRequest.scala
def withDataBoostEnabled(`__v`: Boolean): ReadRequest

Attributes

Source
ReadRequest.scala
def withIndex(`__v`: String): ReadRequest

Attributes

Source
ReadRequest.scala

Attributes

Source
ReadRequest.scala
def withLimit(`__v`: Long): ReadRequest

Attributes

Source
ReadRequest.scala
def withPartitionToken(`__v`: ByteString): ReadRequest

Attributes

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

Attributes

Source
ReadRequest.scala
def withSession(`__v`: String): ReadRequest

Attributes

Source
ReadRequest.scala
def withTable(`__v`: String): ReadRequest

Attributes

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

Attributes

Source
ReadRequest.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
ReadRequest.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[ReadRequest, ReadRequest] => () => ReadRequest*): 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