public static final class FirestoreV1.PartitionQuery extends PTransform<InT,OutT>
PTransform
<
PCollection
<
PartitionQueryRequest
>,
PTransform
<
RunQueryRequest
>>
which will read from Firestore.
Perform the necessary operations and handling of PartitionQueryResponse
s to yield a
number of RunQueryRequest
which are friendly to being executed in parallel.
This class is part of the Firestore Connector DSL, it has a type safe builder accessible via
FirestoreIO.v1()
.
read()
.
partitionQuery()
.
All request quality-of-service for an instance of this PTransform is scoped to the worker
and configured via FirestoreV1.Transform.Builder.withRpcQosOptions(RpcQosOptions)
.
FirestoreIO.v1()
,
FirestoreV1.read()
,
FirestoreV1.Read.partitionQuery()
,
FirestoreV1.PartitionQuery.Builder
,
FirestoreV1.Read.runQuery()
,
FirestoreV1.RunQuery
,
FirestoreV1.RunQuery.Builder
,
PartitionQueryRequest
,
RunQueryResponse
,
google.firestore.v1.Firestore.PartitionQuery,
google.firestore.v1.PartitionQueryRequest,
google.firestore.v1.PartitionQueryResponse,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
FirestoreV1.PartitionQuery.Builder
A type safe builder for
FirestoreV1.PartitionQuery allowing configuration and instantiation. |
annotations, displayData, name, resourceHints
Modifier and Type | Method and Description |
---|---|
PCollection<com.google.firestore.v1.RunQueryRequest> |
expand(PCollection<com.google.firestore.v1.PartitionQueryRequest> input)
Override this method to specify how this
PTransform should be expanded on the given
InputT . |
FirestoreV1.PartitionQuery.Builder |
toBuilder()
Create a new
Builder from the current instance. |
addAnnotation, compose, compose, getAdditionalInputs, getAnnotations, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, setDisplayData, setResourceHints, toString, validate, validate
public PCollection<com.google.firestore.v1.RunQueryRequest> expand(PCollection<com.google.firestore.v1.PartitionQueryRequest> input)
PTransform
PTransform
should be expanded on the given
InputT
.
NOTE: This method should not be called directly. Instead apply the PTransform
should
be applied to the InputT
using the apply
method.
Composite transforms, which are defined in terms of other transforms, should return the output of one of the composed transforms. Non-composite transforms, which do not apply any transforms internally, should return a new unbound output and register evaluators (via backend-specific registration methods).
expand
in class PTransform<PCollection<com.google.firestore.v1.PartitionQueryRequest>,PCollection<com.google.firestore.v1.RunQueryRequest>>
public FirestoreV1.PartitionQuery.Builder toBuilder()
Builder
from the current instance.Builder
initialized to the current state of this
instance