Package org.apache.beam.sdk.io.mongodb
Class MongoDbWriteSchemaTransformConfiguration
java.lang.Object
org.apache.beam.sdk.io.mongodb.MongoDbWriteSchemaTransformConfiguration
- All Implemented Interfaces:
Serializable
@DefaultSchema(AutoValueSchema.class)
public abstract class MongoDbWriteSchemaTransformConfiguration
extends Object
implements Serializable
Configuration class for the MongoDB Write transform.
- See Also:
-
Constructor Details
-
MongoDbWriteSchemaTransformConfiguration
public MongoDbWriteSchemaTransformConfiguration()
-
-
Method Details
-
getUri
@SchemaFieldDescription("The connection URI for the MongoDB server.") public abstract String getUri() -
getDatabase
-
getCollection
@SchemaFieldDescription("The MongoDB collection to write to.") public abstract String getCollection() -
getBatchSize
@SchemaFieldDescription("The number of documents to include in each batch write.") public abstract @Nullable Long getBatchSize() -
getErrorHandling
@SchemaFieldDescription("This option specifies whether and where to output unwritable rows. Note: Error handling is currently limited to data conversion failures before sending to the MongoDB driver, as the underlying MongoDbIO does not yet support dead-letter queues for write failures.") public abstract @Nullable ErrorHandling getErrorHandling() -
validate
public void validate() -
builder
-