Interface FieldsExposingAggregationOperation
- All Superinterfaces:
AggregationOperation
- All Known Subinterfaces:
FieldsExposingAggregationOperation.InheritsFieldsAggregationOperation
- All Known Implementing Classes:
AddFieldsOperation
,BucketAutoOperation
,BucketOperation
,BucketOperationSupport
,CountOperation
,FacetOperation
,GraphLookupOperation
,GroupOperation
,LookupOperation
,MergeOperation
,ProjectionOperation
,ReplaceRootOperation
,ReplaceRootOperation.ReplaceRootDocumentOperation
,ReplaceWithOperation
,SetOperation
,SetWindowFieldsOperation
,UnsetOperation
,UnwindOperation
AggregationOperation
that exposes ExposedFields
that can be used for later aggregation pipeline
AggregationOperation
s. A FieldsExposingAggregationOperation
implementing the
FieldsExposingAggregationOperation.InheritsFieldsAggregationOperation
will expose fields from its parent operations. Not implementing
FieldsExposingAggregationOperation.InheritsFieldsAggregationOperation
will replace existing exposed fields.- Author:
- Thomas Darimont, Mark Paluch
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Marker interface forAggregationOperation
that inherits fields from previous operations. -
Method Summary
Modifier and TypeMethodDescriptionReturns the fields exposed by theAggregationOperation
.default boolean
Methods inherited from interface org.springframework.data.mongodb.core.aggregation.AggregationOperation
getOperator, toDocument, toPipelineStages
-
Method Details
-
getFields
ExposedFields getFields()Returns the fields exposed by theAggregationOperation
.- Returns:
- will never be null.
-
inheritsFields
default boolean inheritsFields()- Returns:
- true to conditionally inherit fields from previous operations.
- Since:
- 2.0.6
-