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, wait
continueOnMissingFieldReference, getFields, getMappedObject
public 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)
AggregationOperationContext
Document
, potentially converting the source considering mapping metadata for the given
type.getMappedObject
in interface AggregationOperationContext
document
- will never be null.type
- can be null.public ExposedFields.FieldReference getReference(Field field)
AggregationOperationContext
ExposedFields.FieldReference
for the given field.getReference
in interface AggregationOperationContext
field
- must not be null.ExposedFields.FieldReference
for the given Field
.public ExposedFields.FieldReference getReference(String name)
AggregationOperationContext
ExposedFields.FieldReference
for the field with the given name.getReference
in interface AggregationOperationContext
name
- must not be null or empty.ExposedFields.FieldReference
for the field with given name.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.