final case class ReadRequest(session: String = "", transaction: Option[TransactionSelector] = _root_.scala.None, table: String = "", index: String = "", columns: Seq[String] = _root_.scala.Seq.empty, keySet: Option[KeySet] = _root_.scala.None, limit: Long = 0L, resumeToken: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, partitionToken: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, requestOptions: Option[RequestOptions] = _root_.scala.None, directedReadOptions: Option[DirectedReadOptions] = _root_.scala.None, dataBoostEnabled: Boolean = false, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[ReadRequest] with Product with Serializable

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

session

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

transaction

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

table

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

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.

columns

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

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.

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.

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.

directedReadOptions

Directed read options for this request.

dataBoostEnabled

If this is for a partitioned read and this field is set to true, the request is executed with Spanner Data Boost independent compute resources. If the field is set to true but the request does not set partition_token, the API returns an INVALID_ARGUMENT error.

Annotations
@SerialVersionUID()
Source
ReadRequest.scala
Linear Supertypes
Updatable[ReadRequest], GeneratedMessage, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReadRequest
  2. Updatable
  3. GeneratedMessage
  4. Serializable
  5. Product
  6. Equals
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ReadRequest(session: String = "", transaction: Option[TransactionSelector] = _root_.scala.None, table: String = "", index: String = "", columns: Seq[String] = _root_.scala.Seq.empty, keySet: Option[KeySet] = _root_.scala.None, limit: Long = 0L, resumeToken: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, partitionToken: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, requestOptions: Option[RequestOptions] = _root_.scala.None, directedReadOptions: Option[DirectedReadOptions] = _root_.scala.None, dataBoostEnabled: Boolean = false, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty)

    session

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

    transaction

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

    table

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

    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.

    columns

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

    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.

    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.

    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.

    directedReadOptions

    Directed read options for this request.

    dataBoostEnabled

    If this is for a partitioned read and this field is set to true, the request is executed with Spanner Data Boost independent compute resources. If the field is set to true but the request does not set partition_token, the API returns an INVALID_ARGUMENT error.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addAllColumns(__vs: Iterable[String]): ReadRequest
  5. def addColumns(__vs: String*): ReadRequest
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clearColumns: ReadRequest
  8. def clearDirectedReadOptions: ReadRequest
  9. def clearKeySet: ReadRequest
  10. def clearRequestOptions: ReadRequest
  11. def clearTransaction: ReadRequest
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  13. val columns: Seq[String]
  14. def companion: ReadRequest.type
    Definition Classes
    ReadRequest → GeneratedMessage
  15. val dataBoostEnabled: Boolean
  16. val directedReadOptions: Option[DirectedReadOptions]
  17. def discardUnknownFields: ReadRequest
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  20. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. def getDirectedReadOptions: DirectedReadOptions
  22. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    ReadRequest → GeneratedMessage
  23. def getFieldByNumber(__fieldNumber: Int): Any
    Definition Classes
    ReadRequest → GeneratedMessage
  24. def getKeySet: KeySet
  25. def getRequestOptions: RequestOptions
  26. def getTransaction: TransactionSelector
  27. val index: String
  28. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  29. val keySet: Option[KeySet]
  30. val limit: Long
  31. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  33. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  34. val partitionToken: ByteString
  35. def productElementNames: Iterator[String]
    Definition Classes
    Product
  36. val requestOptions: Option[RequestOptions]
  37. val resumeToken: ByteString
  38. def serializedSize: Int
    Definition Classes
    ReadRequest → GeneratedMessage
  39. val session: String
  40. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  41. val table: String
  42. final def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  43. final def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  44. final def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  45. def toProtoString: String
    Definition Classes
    ReadRequest → GeneratedMessage
  46. val transaction: Option[TransactionSelector]
  47. val unknownFields: UnknownFieldSet
  48. def update(ms: (Lens[ReadRequest, ReadRequest]) => Mutation[ReadRequest]*): ReadRequest
    Definition Classes
    Updatable
  49. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  50. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  51. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  52. def withColumns(__v: Seq[String]): ReadRequest
  53. def withDataBoostEnabled(__v: Boolean): ReadRequest
  54. def withDirectedReadOptions(__v: DirectedReadOptions): ReadRequest
  55. def withIndex(__v: String): ReadRequest
  56. def withKeySet(__v: KeySet): ReadRequest
  57. def withLimit(__v: Long): ReadRequest
  58. def withPartitionToken(__v: ByteString): ReadRequest
  59. def withRequestOptions(__v: RequestOptions): ReadRequest
  60. def withResumeToken(__v: ByteString): ReadRequest
  61. def withSession(__v: String): ReadRequest
  62. def withTable(__v: String): ReadRequest
  63. def withTransaction(__v: TransactionSelector): ReadRequest
  64. def withUnknownFields(__v: UnknownFieldSet): ReadRequest
  65. final def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  66. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    ReadRequest → GeneratedMessage
  67. final def writeTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage

Inherited from Updatable[ReadRequest]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped