Uses of Interface
org.springframework.data.mongodb.core.aggregation.AggregationOperation
Packages that use AggregationOperation
Package
Description
MongoDB core support.
Support for the MongoDB aggregation framework.
Query derivation mechanism for MongoDB specific repositories.
-
Uses of AggregationOperation in org.springframework.data.mongodb.core
Methods in org.springframework.data.mongodb.core with parameters of type AggregationOperationModifier and TypeMethodDescriptiondefault com.mongodb.client.MongoCollection<org.bson.Document>
MongoOperations.createView
(String name, Class<?> source, AggregationOperation... stages) Create a view with the provided name.default reactor.core.publisher.Mono<com.mongodb.reactivestreams.client.MongoCollection<org.bson.Document>>
ReactiveMongoOperations.createView
(String name, Class<?> source, AggregationOperation... stages) Create a view with the provided name. -
Uses of AggregationOperation in org.springframework.data.mongodb.core.aggregation
Subinterfaces of AggregationOperation in org.springframework.data.mongodb.core.aggregationModifier and TypeInterfaceDescriptioninterface
AggregationOperation
that exposesExposedFields
that can be used for later aggregation pipelineAggregationOperation
s.static interface
Marker interface forAggregationOperation
that inherits fields from previous operations.Classes in org.springframework.data.mongodb.core.aggregation that implement AggregationOperationModifier and TypeClassDescriptionclass
Adds new fields to documents.class
Encapsulates the aggregation framework$bucketAuto
-operation.class
Encapsulates the aggregation framework$bucket
-operation.class
BucketOperationSupport<T extends BucketOperationSupport<T,
B>, B extends BucketOperationSupport.OutputBuilder<B, T>> Base class for bucket operations that support output expressions the aggregation framework.class
Encapsulates the aggregation framework$count
-operation.class
Encapsulates the aggregation framework$facet
-operation.class
Represents ageoNear
aggregation operation.class
Encapsulates the aggregation framework$graphLookup
-operation.class
Encapsulates the aggregation framework$group
-operation.class
Encapsulates the$limit
-operation.class
Encapsulates the aggregation framework$lookup
-operation.class
Encapsulates the$match
-operation.class
Encapsulates the$merge
-operation.class
Encapsulates the$out
-operation.class
Encapsulates the aggregation framework$project
-operation.static class
AnProjectionOperation.ProjectionOperationBuilder
that is used for SpEL expression based projections.static class
Builder forProjectionOperation
s on a field.class
RedactOperation
allows to restrict the content of aDocument
based on information stored within itself.class
Encapsulates the aggregation framework$replaceRoot
-operation.static class
Encapsulates the aggregation framework$replaceRoot
-operation to result in a composable replacement document.class
Encapsulates the aggregation framework$replaceRoot
-operation.class
Encapsulates the$sample
-operation.class
Adds new fields to documents.class
Encapsulates thesetWindowFields
-operation.class
Encapsulates the aggregation framework$skip
-operation.class
Encapsulates the aggregation framework$sortByCount
-operation.class
Encapsulates the aggregation framework$sort
-operation.class
The $unionWith aggregation stage (available since MongoDB 4.4) performs a union of two collections by combining pipeline results, potentially containing duplicates, into a single result set that is handed over to the next stage.class
Removes fields from documents.class
Encapsulates the aggregation framework$unwind
-operation.Methods in org.springframework.data.mongodb.core.aggregation that return AggregationOperationModifier and TypeMethodDescriptionstatic AggregationOperation
Creates a newAggregationOperation
taking the givenjson value
as is.static AggregationOperation
Aggregation.stage
(org.bson.conversions.Bson aggregationOperation) Creates a newAggregationOperation
taking the givenbson value
as is.Methods in org.springframework.data.mongodb.core.aggregation that return types with arguments of type AggregationOperationModifier and TypeMethodDescriptionprotected static List<AggregationOperation>
Aggregation.asAggregationList
(AggregationOperation... aggregationOperations) AggregationPipeline.getOperations()
Get the list ofaggregation stages
.Methods in org.springframework.data.mongodb.core.aggregation with parameters of type AggregationOperationModifier and TypeMethodDescriptionAggregationPipeline.add
(AggregationOperation aggregationOperation) Append the givenstage
to the pipeline.FacetOperation.and
(AggregationOperation... operations) Creates a newFacetOperation.FacetOperationBuilder
to append a new facet using operations.protected static List<AggregationOperation>
Aggregation.asAggregationList
(AggregationOperation... aggregationOperations) Aggregation.facet
(AggregationOperation... aggregationOperations) Creates a newFacetOperation.FacetOperationBuilder
givenAggregation
.static <T> TypedAggregation<T>
Aggregation.newAggregation
(Class<T> type, AggregationOperation... operations) Creates a newTypedAggregation
for the given type andAggregationOperation
s.static Aggregation
Aggregation.newAggregation
(AggregationOperation... operations) Creates a newAggregation
from the givenAggregationOperation
s.static AggregationUpdate
Aggregation.newUpdate
(AggregationOperation... operations) Creates a newAggregationUpdate
from the givenAggregationOperation
s.static AggregationPipeline
AggregationPipeline.of
(AggregationOperation... stages) UnionWithOperation.pipeline
(AggregationOperation... aggregationStages) Set the aggregation pipeline stages to apply to the specified collection.Method parameters in org.springframework.data.mongodb.core.aggregation with type arguments of type AggregationOperationModifier and TypeMethodDescriptionstatic AggregationUpdate
AggregationUpdate.from
(List<AggregationOperation> pipeline) Create a new AggregationUpdate from the givenAggregationOperation
s.static <T> TypedAggregation<T>
Aggregation.newAggregation
(Class<T> type, List<? extends AggregationOperation> operations) Creates a newTypedAggregation
for the given type andAggregationOperation
s.static Aggregation
Aggregation.newAggregation
(List<? extends AggregationOperation> operations) Creates a newAggregation
from the givenAggregationOperation
s.UnionWithOperation.pipeline
(List<AggregationOperation> aggregationStages) Set the aggregation pipeline stages to apply to the specified collection.MergeOperation.WhenDocumentsMatch.updateWith
(List<AggregationOperation> aggregationPipeline) Use an aggregation pipeline to update the document in the collection.Constructors in org.springframework.data.mongodb.core.aggregation with parameters of type AggregationOperationModifierConstructorDescriptionprotected
Aggregation
(AggregationOperation... aggregationOperations) Creates a newAggregation
from the givenAggregationOperation
s.protected
SetWindowFieldsOperation
(Object partitionBy, AggregationOperation sortBy, SetWindowFieldsOperation.WindowOutput output) Create a newSetWindowFieldsOperation
with given args.TypedAggregation
(Class<I> inputType, AggregationOperation... operations) Creates a newTypedAggregation
from the givenAggregationOperation
s.Constructor parameters in org.springframework.data.mongodb.core.aggregation with type arguments of type AggregationOperationModifierConstructorDescriptionprotected
Aggregation
(List<AggregationOperation> aggregationOperations) Creates a newAggregation
from the givenAggregationOperation
s.protected
Aggregation
(List<AggregationOperation> aggregationOperations, AggregationOptions options) Creates a newAggregation
from the givenAggregationOperation
s.AggregationPipeline
(List<AggregationOperation> aggregationOperations) Create a new pipeline with givenstages
.protected
AggregationUpdate
(List<AggregationOperation> pipeline) Create newAggregationUpdate
with the given aggregation pipeline to apply.TypedAggregation
(Class<I> inputType, List<AggregationOperation> operations) Creates a newTypedAggregation
from the givenAggregationOperation
s.TypedAggregation
(Class<I> inputType, List<AggregationOperation> operations, AggregationOptions options) Creates a newTypedAggregation
from the givenAggregationOperation
s and the givenAggregationOptions
. -
Uses of AggregationOperation in org.springframework.data.mongodb.repository.query
Methods in org.springframework.data.mongodb.repository.query that return types with arguments of type AggregationOperationModifier and TypeMethodDescriptionprotected List<AggregationOperation>
AbstractMongoQuery.parseAggregationPipeline
(String[] sourcePipeline, ConvertingParameterAccessor accessor) Parse the given aggregation pipeline stages applying values to placeholders to compute the actual list ofoperations
.protected reactor.core.publisher.Mono<List<AggregationOperation>>
AbstractReactiveMongoQuery.parseAggregationPipeline
(String[] pipeline, MongoParameterAccessor accessor) Parse the given aggregation pipeline stages applying values to placeholders to compute the actual list ofoperations
.