Package org.apache.beam.sdk.io.mongodb
Class UpdateConfiguration
- java.lang.Object
-
- org.apache.beam.sdk.io.mongodb.UpdateConfiguration
-
- All Implemented Interfaces:
java.io.Serializable
@Experimental(SOURCE_SINK) public abstract class UpdateConfiguration extends java.lang.Object implements java.io.SerializableBuilds a MongoDB UpdateConfiguration object.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UpdateConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UpdateConfigurationcreate()UpdateConfigurationwithFindKey(java.lang.String findKey)Sets the filters to find.UpdateConfigurationwithIsUpsert(boolean isUpsert)UpdateConfigurationwithUpdateFields(UpdateField... updateFields)Sets the configurations for multiple updates.UpdateConfigurationwithUpdateKey(java.lang.String updateKey)
-
-
-
Method Detail
-
create
public static UpdateConfiguration create()
-
withUpdateFields
public UpdateConfiguration withUpdateFields(UpdateField... updateFields)
Sets the configurations for multiple updates. Takes update operator, source field name and dest field name for each one
-
withFindKey
public UpdateConfiguration withFindKey(java.lang.String findKey)
Sets the filters to find.
-
withUpdateKey
public UpdateConfiguration withUpdateKey(java.lang.String updateKey)
-
withIsUpsert
public UpdateConfiguration withIsUpsert(boolean isUpsert)
-
-