Package | Description |
---|---|
org.springframework.data.mongodb.core |
MongoDB core support.
|
org.springframework.data.mongodb.core.aggregation |
Support for the MongoDB aggregation framework.
|
Modifier and Type | Method and Description |
---|---|
protected <O> AggregationResults<O> |
MongoTemplate.aggregate(Aggregation aggregation,
String collectionName,
Class<O> outputType,
AggregationOperationContext context) |
protected <O> CloseableIterator<O> |
MongoTemplate.aggregateStream(Aggregation aggregation,
String collectionName,
Class<O> outputType,
AggregationOperationContext context) |
protected <O> AggregationResults<O> |
MongoTemplate.doAggregate(Aggregation aggregation,
String collectionName,
Class<O> outputType,
AggregationOperationContext context) |
Modifier and Type | Class and Description |
---|---|
class |
PrefixingDelegatingAggregationOperationContext
AggregationOperationContext implementation prefixing non-command keys on root level with the given prefix. |
class |
RelaxedTypeBasedAggregationOperationContext
A
TypeBasedAggregationOperationContext with less restrictive field reference handling, suppressing
InvalidPersistentPropertyPath exceptions when resolving mapped field names. |
class |
TypeBasedAggregationOperationContext
AggregationOperationContext aware of a particular type and a MappingContext to potentially translate
property references into document field names. |
Modifier and Type | Field and Description |
---|---|
static AggregationOperationContext |
Aggregation.DEFAULT_CONTEXT |
Modifier and Type | Method and Description |
---|---|
AggregationOperationContext |
TypeBasedAggregationOperationContext.continueOnMissingFieldReference() |
default AggregationOperationContext |
AggregationOperationContext.continueOnMissingFieldReference()
This toggle allows the
context to use any given field name without checking for
its existence. |
AggregationOperationContext |
TypeBasedAggregationOperationContext.continueOnMissingFieldReference(Class<?> type)
This toggle allows the
context to use any given field name without checking for
its existence. |
Modifier and Type | Method and Description |
---|---|
protected List<Object> |
BucketOperationSupport.OperationOutput.getOperationArguments(AggregationOperationContext context) |
org.bson.Document |
MatchOperation.toDocument(AggregationOperationContext context) |
org.bson.Document |
RedactOperation.toDocument(AggregationOperationContext context) |
org.bson.Document |
AggregationSpELExpression.toDocument(AggregationOperationContext context) |
org.bson.Document |
FacetOperation.toDocument(AggregationOperationContext context) |
org.bson.Document |
OutOperation.toDocument(AggregationOperationContext context) |
org.bson.Document |
UnsetOperation.toDocument(AggregationOperationContext context) |
org.bson.Document |
GeoNearOperation.toDocument(AggregationOperationContext context) |
org.bson.Document |
SortOperation.toDocument(AggregationOperationContext context) |
org.bson.Document |
SkipOperation.toDocument(AggregationOperationContext context) |
org.bson.Document |
UnwindOperation.toDocument(AggregationOperationContext context) |
org.bson.Document |
BucketOperationSupport.toDocument(AggregationOperationContext context) |
org.bson.Document |
BucketOperationSupport.Outputs.toDocument(AggregationOperationContext context) |
org.bson.Document |
BucketOperationSupport.OperationOutput.toDocument(AggregationOperationContext context) |
org.bson.Document |
ReplaceWithOperation.toDocument(AggregationOperationContext context) |
org.bson.Document |
VariableOperators.Map.toDocument(AggregationOperationContext context) |
org.bson.Document |
VariableOperators.Let.toDocument(AggregationOperationContext context) |
org.bson.Document |
MergeOperation.toDocument(AggregationOperationContext context) |
org.bson.Document |
MergeOperation.WhenDocumentsDontMatch.toDocument(AggregationOperationContext context) |
org.bson.Document |
ReplaceRootOperation.toDocument(AggregationOperationContext context) |
org.bson.Document |
GroupOperation.toDocument(AggregationOperationContext context) |
org.bson.Document |
AggregationExpression.toDocument(AggregationOperationContext context)
|
org.bson.Document |
AggregationOperation.toDocument(AggregationOperationContext context)
Deprecated.
since 2.2 in favor of
AggregationOperation.toPipelineStages(AggregationOperationContext) . |
org.bson.Document |
LimitOperation.toDocument(AggregationOperationContext context) |
org.bson.Document |
SampleOperation.toDocument(AggregationOperationContext context) |
org.bson.Document |
ProjectionOperation.toDocument(AggregationOperationContext context) |
org.bson.Document |
ProjectionOperation.ProjectionOperationBuilder.toDocument(AggregationOperationContext context) |
org.bson.Document |
ArrayOperators.Filter.toDocument(AggregationOperationContext context) |
org.bson.Document |
ArrayOperators.Reduce.toDocument(AggregationOperationContext context) |
org.bson.Document |
ArrayOperators.Reduce.PropertyExpression.toDocument(AggregationOperationContext context) |
org.bson.Document |
BucketOperation.toDocument(AggregationOperationContext context) |
org.bson.Document |
UnionWithOperation.toDocument(AggregationOperationContext context) |
org.bson.Document |
GraphLookupOperation.toDocument(AggregationOperationContext context) |
org.bson.Document |
LookupOperation.toDocument(AggregationOperationContext context) |
org.bson.Document |
SortByCountOperation.toDocument(AggregationOperationContext context) |
org.bson.Document |
ConditionalOperators.IfNull.toDocument(AggregationOperationContext context) |
org.bson.Document |
ConditionalOperators.Switch.CaseOperator.toDocument(AggregationOperationContext context) |
org.bson.Document |
ConditionalOperators.Cond.toDocument(AggregationOperationContext context) |
org.bson.Document |
CountOperation.toDocument(AggregationOperationContext context) |
org.bson.Document |
BucketAutoOperation.toDocument(AggregationOperationContext context) |
org.bson.Document |
ObjectOperators.MergeObjects.toDocument(Object value,
AggregationOperationContext context) |
org.bson.Document |
AccumulatorOperators.Sum.toDocument(Object value,
AggregationOperationContext context) |
org.bson.Document |
AccumulatorOperators.Avg.toDocument(Object value,
AggregationOperationContext context) |
org.bson.Document |
AccumulatorOperators.Max.toDocument(Object value,
AggregationOperationContext context) |
org.bson.Document |
AccumulatorOperators.Min.toDocument(Object value,
AggregationOperationContext context) |
org.bson.Document |
AccumulatorOperators.StdDevPop.toDocument(Object value,
AggregationOperationContext context) |
org.bson.Document |
AccumulatorOperators.StdDevSamp.toDocument(Object value,
AggregationOperationContext context) |
org.bson.Document |
Aggregation.toDocument(String inputCollectionName,
AggregationOperationContext rootContext)
Converts this
Aggregation specification to a Document . |
Object |
ReplaceRootOperation.Replacement.toDocumentExpression(AggregationOperationContext context)
Renders the current
ReplaceRootOperation.Replacement into a its MongoDB representation based on the given
AggregationOperationContext . |
List<org.bson.Document> |
Aggregation.toPipeline(AggregationOperationContext rootContext)
|
List<org.bson.Document> |
GeoNearOperation.toPipelineStages(AggregationOperationContext context) |
default List<org.bson.Document> |
AggregationOperation.toPipelineStages(AggregationOperationContext context)
|
Constructor and Description |
---|
PrefixingDelegatingAggregationOperationContext(AggregationOperationContext delegate,
String prefix) |
PrefixingDelegatingAggregationOperationContext(AggregationOperationContext delegate,
String prefix,
Collection<String> denylist) |
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.