public class TestAggregationContext extends Object implements AggregationOperationContext
| Modifier and Type | Method and Description |
|---|---|
static AggregationOperationContext |
contextFor(Class<?> type) |
static AggregationOperationContext |
contextFor(Class<?> type,
MongoConverter mongoConverter) |
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. |
ExposedFields.FieldReference |
getReference(String name)
Returns the
ExposedFields.FieldReference for the field with the given name. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontinueOnMissingFieldReference, getFields, getMappedObjectpublic static AggregationOperationContext contextFor(@Nullable Class<?> type)
public static AggregationOperationContext contextFor(@Nullable Class<?> type, MongoConverter mongoConverter)
public org.bson.Document getMappedObject(org.bson.Document document,
@Nullable
Class<?> type)
AggregationOperationContextDocument, potentially converting the source considering mapping metadata for the given
type.getMappedObject in interface AggregationOperationContextdocument - will never be null.type - can be null.public ExposedFields.FieldReference getReference(Field field)
AggregationOperationContextExposedFields.FieldReference for the given field.getReference in interface AggregationOperationContextfield - must not be null.ExposedFields.FieldReference for the given Field.public ExposedFields.FieldReference getReference(String name)
AggregationOperationContextExposedFields.FieldReference for the field with the given name.getReference in interface AggregationOperationContextname - must not be null or empty.ExposedFields.FieldReference for the field with given name.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.