| Package | Description |
|---|---|
| org.springframework.data.mongodb.core.aggregation |
Support for the MongoDB aggregation framework.
|
| Modifier and Type | Method and Description |
|---|---|
static AggregationUpdate |
AggregationUpdate.from(List<AggregationOperation> pipeline)
Create a new AggregationUpdate from the given
AggregationOperations. |
AggregationUpdate |
AggregationUpdate.isolated()
Prevents a write operation that affects multiple documents from yielding to other reads or writes
once the first document is written.
|
static AggregationUpdate |
Aggregation.newUpdate(AggregationOperation... operations)
Creates a new
AggregationUpdate from the given AggregationOperations. |
AggregationUpdate |
AggregationUpdate.replaceWith(Object value)
$replaceWith replaces the input document with the value. |
AggregationUpdate |
AggregationUpdate.replaceWith(ReplaceWithOperation replaceWithOperation)
$replaceWith replaces the input document with the specified document. |
AggregationUpdate |
AggregationUpdate.set(SetOperation setOperation)
Adds new fields to documents.
|
AggregationUpdate |
AggregationUpdate.SetValueAppender.toValue(Object value)
Define the target value as is.
|
AggregationUpdate |
AggregationUpdate.SetValueAppender.toValueOf(Object value)
Define the target value as value, an
AggregationExpression or a Field reference. |
AggregationUpdate |
AggregationUpdate.unset(String... keys)
Short for
unset(UnsetOperation). |
AggregationUpdate |
AggregationUpdate.unset(UnsetOperation unsetOperation)
$unset removes/excludes fields from documents. |
static AggregationUpdate |
AggregationUpdate.update()
Start defining the update pipeline to execute.
|
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.