Class RelaxedTypeBasedAggregationOperationContext
java.lang.Object
org.springframework.data.mongodb.core.aggregation.TypeBasedAggregationOperationContext
org.springframework.data.mongodb.core.aggregation.RelaxedTypeBasedAggregationOperationContext
- All Implemented Interfaces:
CodecRegistryProvider
,AggregationOperationContext
public class RelaxedTypeBasedAggregationOperationContext
extends TypeBasedAggregationOperationContext
A
TypeBasedAggregationOperationContext
with less restrictive field reference handling, suppressing
InvalidPersistentPropertyPath
exceptions when resolving mapped field names.- Since:
- 3.0
- Author:
- Christoph Strobl
-
Constructor Summary
ConstructorDescriptionRelaxedTypeBasedAggregationOperationContext
(Class<?> type, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext, QueryMapper mapper) Creates a newTypeBasedAggregationOperationContext
for the given type,MappingContext
andQueryMapper
. -
Method Summary
Modifier and TypeMethodDescriptionprotected ExposedFields.FieldReference
getReferenceFor
(Field field) Methods inherited from class org.springframework.data.mongodb.core.aggregation.TypeBasedAggregationOperationContext
continueOnMissingFieldReference, continueOnMissingFieldReference, getCodecRegistry, getFields, getMappedObject, getMappedObject, getReference, getReference, getType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.mongodb.CodecRegistryProvider
getCodecFor, hasCodecFor
-
Constructor Details
-
RelaxedTypeBasedAggregationOperationContext
public RelaxedTypeBasedAggregationOperationContext(Class<?> type, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext, QueryMapper mapper) Creates a newTypeBasedAggregationOperationContext
for the given type,MappingContext
andQueryMapper
.- Parameters:
type
- must not be null.mappingContext
- must not be null.mapper
- must not be null.
-
-
Method Details
-
getReferenceFor
- Overrides:
getReferenceFor
in classTypeBasedAggregationOperationContext
-