Package | Description |
---|---|
org.springframework.data.mongodb.core.aggregation |
Support for the MongoDB aggregation framework.
|
Modifier and Type | Interface and Description |
---|---|
interface |
FieldsExposingAggregationOperation
AggregationOperation that exposes ExposedFields that can be used for later aggregation pipeline
AggregationOperation s. |
static interface |
FieldsExposingAggregationOperation.InheritsFieldsAggregationOperation
Marker interface for
AggregationOperation that inherits fields from previous operations. |
Modifier and Type | Class and Description |
---|---|
class |
AddFieldsOperation
Adds new fields to documents.
|
class |
BucketAutoOperation
Encapsulates the aggregation framework
$bucketAuto -operation. |
class |
BucketOperation
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 |
CountOperation
Encapsulates the aggregation framework
$count -operation. |
class |
FacetOperation
Encapsulates the aggregation framework
$facet -operation. |
class |
GeoNearOperation
Represents a
geoNear aggregation operation. |
class |
GraphLookupOperation
Encapsulates the aggregation framework
$graphLookup -operation. |
class |
GroupOperation
Encapsulates the aggregation framework
$group -operation. |
class |
LimitOperation
Encapsulates the
$limit -operation. |
class |
LookupOperation
Encapsulates the aggregation framework
$lookup -operation. |
class |
MatchOperation
Encapsulates the
$match -operation. |
class |
MergeOperation
Encapsulates the
$merge -operation. |
class |
OutOperation
Encapsulates the
$out -operation. |
class |
ProjectionOperation
Encapsulates the aggregation framework
$project -operation. |
static class |
ProjectionOperation.ExpressionProjectionOperationBuilder
An
ProjectionOperation.ProjectionOperationBuilder that is used for SpEL expression based projections. |
static class |
ProjectionOperation.ProjectionOperationBuilder
Builder for
ProjectionOperation s on a field. |
class |
RedactOperation
RedactOperation allows to restrict the content of a Document based on information stored within
itself. |
class |
ReplaceRootOperation
Encapsulates the aggregation framework
$replaceRoot -operation. |
static class |
ReplaceRootOperation.ReplaceRootDocumentOperation
Encapsulates the aggregation framework
$replaceRoot -operation to result in a composable replacement
document. |
class |
ReplaceWithOperation
Encapsulates the aggregation framework
$replaceRoot -operation. |
class |
SampleOperation
Encapsulates the
$sample -operation. |
class |
SetOperation
Adds new fields to documents.
|
class |
SkipOperation
Encapsulates the aggregation framework
$skip -operation. |
class |
SortByCountOperation
Encapsulates the aggregation framework
$sortByCount -operation. |
class |
SortOperation
Encapsulates the aggregation framework
$sort -operation. |
class |
UnionWithOperation
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 |
UnsetOperation
Removes fields from documents.
|
class |
UnwindOperation
Encapsulates the aggregation framework
$unwind -operation. |
Modifier and Type | Method and Description |
---|---|
protected static List<AggregationOperation> |
Aggregation.asAggregationList(AggregationOperation... aggregationOperations) |
List<AggregationOperation> |
AggregationPipeline.getOperations()
Get the list of
aggregation stages . |
Modifier and Type | Method and Description |
---|---|
AggregationPipeline |
AggregationPipeline.add(AggregationOperation aggregationOperation)
Append the given
stage to the pipeline. |
FacetOperation.FacetOperationBuilder |
FacetOperation.and(AggregationOperation... operations)
Creates a new
FacetOperation.FacetOperationBuilder to append a new facet using operations. |
protected static List<AggregationOperation> |
Aggregation.asAggregationList(AggregationOperation... aggregationOperations) |
static FacetOperation.FacetOperationBuilder |
Aggregation.facet(AggregationOperation... aggregationOperations)
Creates a new
FacetOperation.FacetOperationBuilder given Aggregation . |
static Aggregation |
Aggregation.newAggregation(AggregationOperation... operations)
Creates a new
Aggregation from the given AggregationOperation s. |
static <T> TypedAggregation<T> |
Aggregation.newAggregation(Class<T> type,
AggregationOperation... operations)
Creates a new
TypedAggregation for the given type and AggregationOperation s. |
static AggregationUpdate |
Aggregation.newUpdate(AggregationOperation... operations)
Creates a new
AggregationUpdate from the given AggregationOperation s. |
UnionWithOperation |
UnionWithOperation.pipeline(AggregationOperation... aggregationStages)
Set the aggregation pipeline stages to apply to the specified collection.
|
Modifier and Type | Method and Description |
---|---|
static AggregationUpdate |
AggregationUpdate.from(List<AggregationOperation> pipeline)
Create a new AggregationUpdate from the given
AggregationOperation s. |
static <T> TypedAggregation<T> |
Aggregation.newAggregation(Class<T> type,
List<? extends AggregationOperation> operations)
Creates a new
TypedAggregation for the given type and AggregationOperation s. |
static Aggregation |
Aggregation.newAggregation(List<? extends AggregationOperation> operations)
Creates a new
Aggregation from the given AggregationOperation s. |
UnionWithOperation |
UnionWithOperation.pipeline(List<AggregationOperation> aggregationStages)
Set the aggregation pipeline stages to apply to the specified collection.
|
static MergeOperation.WhenDocumentsMatch |
MergeOperation.WhenDocumentsMatch.updateWith(List<AggregationOperation> aggregationPipeline)
Use an aggregation pipeline to update the document in the collection.
|
Constructor and Description |
---|
Aggregation(AggregationOperation... aggregationOperations)
Creates a new
Aggregation from the given AggregationOperation s. |
TypedAggregation(Class<I> inputType,
AggregationOperation... operations)
Creates a new
TypedAggregation from the given AggregationOperation s. |
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.