public static class ReplaceRootOperation.ReplaceRootOperationBuilder extends Object
ReplaceRootOperation
.Constructor and Description |
---|
ReplaceRootOperationBuilder() |
Modifier and Type | Method and Description |
---|---|
org.springframework.data.mongodb.core.aggregation.ReplaceRootOperation.ReplaceRootDocumentOperation |
withDocument()
Defines a root document replacement based on a composable document that is empty initially.
|
ReplaceRootOperation |
withDocument(org.bson.Document document)
Defines a root document replacement based on a composable document given document.
|
ReplaceRootOperation |
withValueOf(AggregationExpression aggregationExpression)
Defines a root document replacement based on a
AggregationExpression that resolves to a document. |
ReplaceRootOperation |
withValueOf(String fieldName)
Defines a root document replacement based on a fieldName that resolves to a document.
|
public ReplaceRootOperation withValueOf(String fieldName)
fieldName
- must not be null or empty.ReplaceRootOperation
.public ReplaceRootOperation withValueOf(AggregationExpression aggregationExpression)
AggregationExpression
that resolves to a document.aggregationExpression
- must not be null.ReplaceRootOperation
.public org.springframework.data.mongodb.core.aggregation.ReplaceRootOperation.ReplaceRootDocumentOperation withDocument()
ReplaceRootOperation
can be populated with individual entries and derive its values from other, existing
documents.ReplaceRootDocumentOperation
.public ReplaceRootOperation withDocument(org.bson.Document document)
ReplaceRootOperation
can be populated with individual entries and derive its values from other, existing
documents.document
- must not be null.ReplaceRootOperation
.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.