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
AggregationOperations. 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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceMarker interface forAggregationOperationthat inherits fields from previous operations. -
Method Summary
Modifier and TypeMethodDescriptionReturns the fields exposed by theAggregationOperation.default booleanMethods inherited from interface 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
-