Package | Description |
---|---|
org.springframework.data.mongodb.core.aggregation |
Support for the MongoDB aggregation framework.
|
Modifier and Type | Method and Description |
---|---|
static MergeOperation.WhenDocumentsMatch |
MergeOperation.WhenDocumentsMatch.failOnMatch()
Stop and fail the aggregation operation.
|
static MergeOperation.WhenDocumentsMatch |
MergeOperation.WhenDocumentsMatch.keepExistingDocument()
Keep the existing document in the output collection.
|
static MergeOperation.WhenDocumentsMatch |
MergeOperation.WhenDocumentsMatch.mergeDocuments()
Merge the matching documents.
|
static MergeOperation.WhenDocumentsMatch |
MergeOperation.WhenDocumentsMatch.replaceDocument()
Replace the existing document in the output collection with the matching results document.
|
static MergeOperation.WhenDocumentsMatch |
MergeOperation.WhenDocumentsMatch.updateWith(Aggregation aggregation)
Use an
Aggregation to update the document in the collection. |
static MergeOperation.WhenDocumentsMatch |
MergeOperation.WhenDocumentsMatch.updateWith(List<AggregationOperation> aggregationPipeline)
Use an aggregation pipeline to update the document in the collection.
|
static MergeOperation.WhenDocumentsMatch |
MergeOperation.WhenDocumentsMatch.whenMatchedOf(String value) |
Modifier and Type | Method and Description |
---|---|
MergeOperation.MergeOperationBuilder |
MergeOperation.MergeOperationBuilder.whenDocumentsMatch(MergeOperation.WhenDocumentsMatch whenMatched)
The action to take place when documents already exist in the target collection.
|
MergeOperation.MergeOperationBuilder |
MergeOperation.MergeOperationBuilder.whenMatched(MergeOperation.WhenDocumentsMatch whenMatched)
The action to take place when documents already exist in the target collection.
|
Constructor and Description |
---|
MergeOperation(MergeOperation.MergeOperationTarget into,
MergeOperation.UniqueMergeId on,
VariableOperators.Let let,
MergeOperation.WhenDocumentsMatch whenMatched,
MergeOperation.WhenDocumentsDontMatch whenNotMatched)
Create new instance of
MergeOperation . |
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.