final case class PartitionQueryRequest(session: String = "", transaction: Option[TransactionSelector] = _root_.scala.None, sql: String = "", params: Option[Struct] = _root_.scala.None, paramTypes: Map[String, Type] = _root_.scala.collection.immutable.Map.empty, partitionOptions: Option[PartitionOptions] = _root_.scala.None, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[PartitionQueryRequest] with Product with Serializable
The request for [PartitionQuery][google.spanner.v1.Spanner.PartitionQuery]
- session
Required. The session used to create the partitions.
- transaction
Read only snapshot transactions are supported, read/write and single use transactions are not.
- sql
Required. The query request to generate partitions for. The request will fail if the query is not root partitionable. For a query to be root partitionable, it needs to satisfy a few conditions. For example, if the query execution plan contains a distributed union operator, then it must be the first operator in the plan. For more information about other conditions, see [Read data in parallel](https://cloud.google.com/spanner/docs/reads#read_data_in_parallel). The query request must not contain DML commands, such as INSERT, UPDATE, or DELETE. Use [ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql] with a PartitionedDml transaction for large, partition-friendly DML operations.
- params
Parameter names and values that bind to placeholders in the SQL string. A parameter placeholder consists of the
@character followed by the parameter name (for example,@firstName). Parameter names can contain letters, numbers, and underscores. Parameters can appear anywhere that a literal value is expected. The same parameter name can be used more than once, for example:"WHERE id > @msg_id AND id < @msg_id + 100"It is an error to execute a SQL statement with unbound parameters.- paramTypes
It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value. For example, values of type
BYTESand values of typeSTRINGboth appear in [params][google.spanner.v1.PartitionQueryRequest.params] as JSON strings. In these cases,param_typescan be used to specify the exact SQL type for some or all of the SQL query parameters. See the definition of [Type][google.spanner.v1.Type] for more information about SQL types.- partitionOptions
Additional options that affect how many partitions are created.
- Annotations
- @SerialVersionUID()
- Source
- PartitionQueryRequest.scala
- Alphabetic
- By Inheritance
- PartitionQueryRequest
- Updatable
- GeneratedMessage
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new PartitionQueryRequest(session: String = "", transaction: Option[TransactionSelector] = _root_.scala.None, sql: String = "", params: Option[Struct] = _root_.scala.None, paramTypes: Map[String, Type] = _root_.scala.collection.immutable.Map.empty, partitionOptions: Option[PartitionOptions] = _root_.scala.None, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty)
- session
Required. The session used to create the partitions.
- transaction
Read only snapshot transactions are supported, read/write and single use transactions are not.
- sql
Required. The query request to generate partitions for. The request will fail if the query is not root partitionable. For a query to be root partitionable, it needs to satisfy a few conditions. For example, if the query execution plan contains a distributed union operator, then it must be the first operator in the plan. For more information about other conditions, see [Read data in parallel](https://cloud.google.com/spanner/docs/reads#read_data_in_parallel). The query request must not contain DML commands, such as INSERT, UPDATE, or DELETE. Use [ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql] with a PartitionedDml transaction for large, partition-friendly DML operations.
- params
Parameter names and values that bind to placeholders in the SQL string. A parameter placeholder consists of the
@character followed by the parameter name (for example,@firstName). Parameter names can contain letters, numbers, and underscores. Parameters can appear anywhere that a literal value is expected. The same parameter name can be used more than once, for example:"WHERE id > @msg_id AND id < @msg_id + 100"It is an error to execute a SQL statement with unbound parameters.- paramTypes
It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value. For example, values of type
BYTESand values of typeSTRINGboth appear in [params][google.spanner.v1.PartitionQueryRequest.params] as JSON strings. In these cases,param_typescan be used to specify the exact SQL type for some or all of the SQL query parameters. See the definition of [Type][google.spanner.v1.Type] for more information about SQL types.- partitionOptions
Additional options that affect how many partitions are created.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addAllParamTypes(__vs: Iterable[(String, Type)]): PartitionQueryRequest
- def addParamTypes(__vs: (String, Type)*): PartitionQueryRequest
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearParamTypes: PartitionQueryRequest
- def clearParams: PartitionQueryRequest
- def clearPartitionOptions: PartitionQueryRequest
- def clearTransaction: PartitionQueryRequest
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def companion: PartitionQueryRequest.type
- Definition Classes
- PartitionQueryRequest → GeneratedMessage
- def discardUnknownFields: PartitionQueryRequest
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getField(__field: FieldDescriptor): PValue
- Definition Classes
- PartitionQueryRequest → GeneratedMessage
- def getFieldByNumber(__fieldNumber: Int): Any
- Definition Classes
- PartitionQueryRequest → GeneratedMessage
- def getParams: Struct
- def getPartitionOptions: PartitionOptions
- def getTransaction: TransactionSelector
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val paramTypes: Map[String, Type]
- val params: Option[Struct]
- val partitionOptions: Option[PartitionOptions]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def serializedSize: Int
- Definition Classes
- PartitionQueryRequest → GeneratedMessage
- val session: String
- val sql: String
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def toByteArray: Array[Byte]
- Definition Classes
- GeneratedMessage
- final def toByteString: ByteString
- Definition Classes
- GeneratedMessage
- final def toPMessage: PMessage
- Definition Classes
- GeneratedMessage
- def toProtoString: String
- Definition Classes
- PartitionQueryRequest → GeneratedMessage
- val transaction: Option[TransactionSelector]
- val unknownFields: UnknownFieldSet
- def update(ms: (Lens[PartitionQueryRequest, PartitionQueryRequest]) => Mutation[PartitionQueryRequest]*): PartitionQueryRequest
- Definition Classes
- Updatable
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withParamTypes(__v: Map[String, Type]): PartitionQueryRequest
- def withParams(__v: Struct): PartitionQueryRequest
- def withPartitionOptions(__v: PartitionOptions): PartitionQueryRequest
- def withSession(__v: String): PartitionQueryRequest
- def withSql(__v: String): PartitionQueryRequest
- def withTransaction(__v: TransactionSelector): PartitionQueryRequest
- def withUnknownFields(__v: UnknownFieldSet): PartitionQueryRequest
- final def writeDelimitedTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
- def writeTo(_output__: CodedOutputStream): Unit
- Definition Classes
- PartitionQueryRequest → GeneratedMessage
- final def writeTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage