Class FirestoreV1.PartitionQuery
- All Implemented Interfaces:
Serializable
,HasDisplayData
- Enclosing class:
FirestoreV1
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)
.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
A type safe builder forFirestoreV1.PartitionQuery
allowing configuration and instantiation. -
Field Summary
Fields inherited from class org.apache.beam.sdk.transforms.PTransform
annotations, displayData, name, resourceHints
-
Method Summary
Modifier and TypeMethodDescriptionPCollection
<com.google.firestore.v1.RunQueryRequest> expand
(PCollection<com.google.firestore.v1.PartitionQueryRequest> input) Override this method to specify how thisPTransform
should be expanded on the givenInputT
.final void
populateDisplayData
(DisplayData.Builder builder) Register display data for the given transform or component.Create a newBuilder
from the current instance.Methods inherited from class org.apache.beam.sdk.transforms.PTransform
addAnnotation, compose, compose, getAdditionalInputs, getAnnotations, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, setDisplayData, setResourceHints, toString, validate, validate
-
Method Details
-
expand
public PCollection<com.google.firestore.v1.RunQueryRequest> expand(PCollection<com.google.firestore.v1.PartitionQueryRequest> input) Description copied from class:PTransform
Override this method to specify how thisPTransform
should be expanded on the givenInputT
.NOTE: This method should not be called directly. Instead apply the
PTransform
should be applied to theInputT
using theapply
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).
- Specified by:
expand
in classPTransform<PCollection<com.google.firestore.v1.PartitionQueryRequest>,
PCollection<com.google.firestore.v1.RunQueryRequest>>
-
toBuilder
Create a newBuilder
from the current instance.- Returns:
- a new instance of a
Builder
initialized to the current state of this instance
-
populateDisplayData
Description copied from class:PTransform
Register display data for the given transform or component.populateDisplayData(DisplayData.Builder)
is invoked by Pipeline runners to collect display data viaDisplayData.from(HasDisplayData)
. Implementations may callsuper.populateDisplayData(builder)
in order to register display data in the current namespace, but should otherwise usesubcomponent.populateDisplayData(builder)
to use the namespace of the subcomponent.By default, does not register any display data. Implementors may override this method to provide their own display data.
- Specified by:
populateDisplayData
in interfaceHasDisplayData
- Overrides:
populateDisplayData
in classPTransform<InT extends PInput,
OutT extends POutput> - Parameters:
builder
- The builder to populate with display data.- See Also:
-