public interface AggregationOperationContext
AggregationOperation.| Modifier and Type | Method and Description |
|---|---|
default AggregationOperationContext |
continueOnMissingFieldReference()
This toggle allows the
context to use any given field name without checking for
its existence. |
default Fields |
getFields(Class<?> type)
Returns the
Fields exposed by the type. |
default org.bson.Document |
getMappedObject(org.bson.Document document)
Returns the mapped
Document, potentially converting the source considering mapping metadata etc. |
org.bson.Document |
getMappedObject(org.bson.Document document,
Class<?> type)
Returns the mapped
Document, potentially converting the source considering mapping metadata for the given
type. |
ExposedFields.FieldReference |
getReference(Field field)
Returns a
ExposedFields.FieldReference for the given field or null if the context does not expose the given
field. |
ExposedFields.FieldReference |
getReference(String name)
Returns the
ExposedFields.FieldReference for the field with the given name or null if the context does not
expose a field with the given name. |
default org.bson.Document getMappedObject(org.bson.Document document)
Document, potentially converting the source considering mapping metadata etc.document - will never be null.org.bson.Document getMappedObject(org.bson.Document document,
@Nullable
Class<?> type)
Document, potentially converting the source considering mapping metadata for the given
type.document - will never be null.type - can be null.ExposedFields.FieldReference getReference(Field field)
ExposedFields.FieldReference for the given field or null if the context does not expose the given
field.field - must not be null.ExposedFields.FieldReference getReference(String name)
ExposedFields.FieldReference for the field with the given name or null if the context does not
expose a field with the given name.name - must not be null or empty.default Fields getFields(Class<?> type)
Fields exposed by the type. May be a class or an interface. The default
implementation uses property descriptors discover fields from a
Class.type - must not be null.BeanUtils.getPropertyDescriptor(Class, String)default AggregationOperationContext continueOnMissingFieldReference()
context to use any given field name without checking for
its existence. Typically the AggregationOperationContext fails when referencing unknown fields, those that
are not present in one of the previous stages or the input source, throughout the pipeline.AggregationOperationContext.Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.