public static final class FirestoreV1.BatchWriteWithDeadLetterQueue
extends org.apache.beam.sdk.transforms.PTransform<InT,OutT>
PTransform<PCollection<Write>, PCollection<FirestoreV1.WriteFailure> which will write to Firestore. FirestoreV1.WriteFailures output by this PTransform are
those writes which were not able to be applied to Cloud Firestore.
Use this BatchWrite when you do not want a failed write to error an entire bundle.
This class is part of the Firestore Connector DSL, it has a type safe builder accessible via
FirestoreIO.v1().write().batchWrite().withDeadLetterQueue().
All request quality-of-service for an instance of this PTransform is scoped to the worker
and configured via FirestoreV1.Transform.Builder.withRpcQosOptions(RpcQosOptions).
Writes performed against Firestore will be ordered and grouped to maximize throughput while maintaining a high request success rate. Batch sizes will be determined by the QOS layer.
FirestoreIO.v1(),
FirestoreV1.write(),
FirestoreV1.Write.batchWrite(),
FirestoreV1.BatchWriteWithSummary.Builder,
FirestoreV1.BatchWriteWithSummary.Builder.withDeadLetterQueue(),
BatchWriteRequest,
BatchWriteResponse,
google.firestore.v1.Firestore.BatchWrite,
google.firestore.v1.BatchWriteRequest,
google.firestore.v1.BatchWriteResponse,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static class |
FirestoreV1.BatchWriteWithDeadLetterQueue.Builder
A type safe builder for
FirestoreV1.BatchWriteWithDeadLetterQueue allowing configuration and
instantiation. |
| Modifier and Type | Method and Description |
|---|---|
org.apache.beam.sdk.values.PCollection<FirestoreV1.WriteFailure> |
expand(org.apache.beam.sdk.values.PCollection<com.google.firestore.v1.Write> input) |
FirestoreV1.BatchWriteWithDeadLetterQueue.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, validatepublic org.apache.beam.sdk.values.PCollection<FirestoreV1.WriteFailure> expand(org.apache.beam.sdk.values.PCollection<com.google.firestore.v1.Write> input)
expand in class org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<com.google.firestore.v1.Write>,org.apache.beam.sdk.values.PCollection<FirestoreV1.WriteFailure>>public FirestoreV1.BatchWriteWithDeadLetterQueue.Builder toBuilder()
Builder from the current instance.Builder initialized to the current state of this
instance