public interface AggregationOperationContext
AggregationOperation.| Modifier and Type | Method and Description |
|---|---|
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)Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.