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 TypeInterfaceDescriptioninterfaceAggregationOperationthat exposesExposedFieldsthat can be used for later aggregation pipelineAggregationOperations.static interfaceMarker interface forAggregationOperationthat inherits fields from previous operations.Classes in org.springframework.data.mongodb.core.aggregation that implement AggregationOperationModifier and TypeClassDescriptionclassAdds new fields to documents.classEncapsulates the aggregation framework$bucketAuto-operation.classEncapsulates the aggregation framework$bucket-operation.classBucketOperationSupport<T extends BucketOperationSupport<T,B>, B extends BucketOperationSupport.OutputBuilder<B, T>> Base class for bucket operations that support output expressions the aggregation framework.classEncapsulates the aggregation framework$count-operation.classEncapsulates the aggregation framework$densify-operation.classEncapsulates the aggregation framework$facet-operation.classRepresents ageoNearaggregation operation.classEncapsulates the aggregation framework$graphLookup-operation.classEncapsulates the aggregation framework$group-operation.classEncapsulates the$limit-operation.classEncapsulates the aggregation framework$lookup-operation.classEncapsulates the$match-operation.classEncapsulates the$merge-operation.classEncapsulates the$out-operation.classEncapsulates the aggregation framework$project-operation.static classAnProjectionOperation.ProjectionOperationBuilderthat is used for SpEL expression based projections.static classBuilder forProjectionOperations on a field.classRedactOperationallows to restrict the content of aDocumentbased on information stored within itself.classEncapsulates the aggregation framework$replaceRoot-operation.static classEncapsulates the aggregation framework$replaceRoot-operation to result in a composable replacement document.classEncapsulates the aggregation framework$replaceRoot-operation.classEncapsulates the$sample-operation.classAdds new fields to documents.classEncapsulates thesetWindowFields-operation.classEncapsulates the aggregation framework$skip-operation.classEncapsulates the aggregation framework$sortByCount-operation.classEncapsulates the aggregation framework$sort-operation.classThe $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.classRemoves fields from documents.classEncapsulates the aggregation framework$unwind-operation.Methods in org.springframework.data.mongodb.core.aggregation that return AggregationOperationModifier and TypeMethodDescriptionstatic AggregationOperationCreates a newAggregationOperationtaking the givenjson valueas is.static AggregationOperationAggregation.stage(org.bson.conversions.Bson aggregationOperation) Creates a newAggregationOperationtaking the givenbson valueas 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 givenstageto the pipeline.FacetOperation.and(AggregationOperation... operations) Creates a newFacetOperation.FacetOperationBuilderto append a new facet using operations.protected static List<AggregationOperation>Aggregation.asAggregationList(AggregationOperation... aggregationOperations) Aggregation.facet(AggregationOperation... aggregationOperations) Creates a newFacetOperation.FacetOperationBuildergivenAggregation.static <T> TypedAggregation<T>Aggregation.newAggregation(Class<T> type, AggregationOperation... operations) Creates a newTypedAggregationfor the given type andAggregationOperations.static AggregationAggregation.newAggregation(AggregationOperation... operations) Creates a newAggregationfrom the givenAggregationOperations.static AggregationUpdateAggregation.newUpdate(AggregationOperation... operations) Creates a newAggregationUpdatefrom the givenAggregationOperations.static AggregationPipelineAggregationPipeline.of(AggregationOperation... stages) default LookupOperation.AsBuilderLookupOperation.PipelineBuilder.pipeline(AggregationOperation... stages) Specifies thestagesthat determine the resulting documents.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 AggregationUpdateAggregationUpdate.from(List<AggregationOperation> pipeline) Create a new AggregationUpdate from the givenAggregationOperations.static <T> TypedAggregation<T>Aggregation.newAggregation(Class<T> type, List<? extends AggregationOperation> operations) Creates a newTypedAggregationfor the given type andAggregationOperations.static AggregationAggregation.newAggregation(List<? extends AggregationOperation> operations) Creates a newAggregationfrom the givenAggregationOperations.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 AggregationOperationModifierConstructorDescriptionprotectedAggregation(AggregationOperation... aggregationOperations) Creates a newAggregationfrom the givenAggregationOperations.protectedSetWindowFieldsOperation(Object partitionBy, AggregationOperation sortBy, SetWindowFieldsOperation.WindowOutput output) Create a newSetWindowFieldsOperationwith given args.TypedAggregation(Class<I> inputType, AggregationOperation... operations) Creates a newTypedAggregationfrom the givenAggregationOperations.Constructor parameters in org.springframework.data.mongodb.core.aggregation with type arguments of type AggregationOperationModifierConstructorDescriptionprotectedAggregation(List<AggregationOperation> aggregationOperations) Creates a newAggregationfrom the givenAggregationOperations.protectedAggregation(List<AggregationOperation> aggregationOperations, AggregationOptions options) Creates a newAggregationfrom the givenAggregationOperations.AggregationPipeline(List<AggregationOperation> aggregationOperations) Create a new pipeline with givenstages.protectedAggregationUpdate(List<AggregationOperation> pipeline) Create newAggregationUpdatewith the given aggregation pipeline to apply.TypedAggregation(Class<I> inputType, List<AggregationOperation> operations) Creates a newTypedAggregationfrom the givenAggregationOperations.TypedAggregation(Class<I> inputType, List<AggregationOperation> operations, AggregationOptions options) Creates a newTypedAggregationfrom the givenAggregationOperations 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.