Uses of Class
org.springframework.data.mongodb.core.aggregation.MergeOperation.MergeOperationBuilder
Packages that use MergeOperation.MergeOperationBuilder
Package
Description
Support for the MongoDB aggregation framework.
-
Uses of MergeOperation.MergeOperationBuilder in org.springframework.data.mongodb.core.aggregation
Methods in org.springframework.data.mongodb.core.aggregation that return MergeOperation.MergeOperationBuilderModifier and TypeMethodDescriptionMergeOperation.builder()Access thebuilder APIto create a new instance ofMergeOperation.MergeOperation.MergeOperationBuilder.exposeVariablesOf(VariableOperators.Let let) Expose the variables defined byVariableOperators.Letto theupdate aggregation.MergeOperation.MergeOperationBuilder.id(MergeOperation.UniqueMergeId id) Set the identifier that determines if a results document matches an already existing document in the output collection.MergeOperation.MergeOperationBuilder.inDatabase(String database) Optionally define a target database if different from the current one.MergeOperation.MergeOperationBuilder.into(MergeOperation.MergeOperationTarget into) Define the target to store results in.MergeOperation.MergeOperationBuilder.intoCollection(String collection) Required output collection name to store results to.MergeOperation.MergeOperationBuilder.let(VariableOperators.Let let) Expose the variables defined byVariableOperators.Letto theupdate aggregation.Aggregation.merge()Obtain abuilderinstance to create a newMergeOperation.Appends a single field or multiple fields that act as a unique identifier for a document.MergeOperation.MergeOperationBuilder.target(MergeOperation.MergeOperationTarget target) Define the target to store results in.MergeOperation.MergeOperationBuilder.whenDocumentsDontMatch(MergeOperation.WhenDocumentsDontMatch whenNotMatched) The action to take place when documents do not already exist in the target collection.MergeOperation.MergeOperationBuilder.whenDocumentsMatch(MergeOperation.WhenDocumentsMatch whenMatched) The action to take place when documents already exist in the target collection.MergeOperation.MergeOperationBuilder.whenDocumentsMatchApply(Aggregation aggregation) Theactionto take place when documents already exist in the target collection.MergeOperation.MergeOperationBuilder.whenMatched(MergeOperation.WhenDocumentsMatch whenMatched) The action to take place when documents already exist in the target collection.MergeOperation.MergeOperationBuilder.whenNotMatched(MergeOperation.WhenDocumentsDontMatch whenNotMatched) The action to take place when documents do not already exist in the target collection.