Spring Data MongoDB - Core

org.springframework.data.mongodb.core.aggregation
Interface AggregationOperationContext

All Known Implementing Classes:
TypeBasedAggregationOperationContext

public interface AggregationOperationContext

The context for an AggregationOperation.

Since:
1.3
Author:
Oliver Gierke

Method Summary
 com.mongodb.DBObject getMappedObject(com.mongodb.DBObject dbObject)
          Returns the mapped DBObject, potentially converting the source considering mapping metadata etc.
 org.springframework.data.mongodb.core.aggregation.ExposedFields.FieldReference getReference(Field field)
          Returns a ExposedFields.FieldReference for the given field or null if the context does not expose the given field.
 org.springframework.data.mongodb.core.aggregation.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.
 

Method Detail

getMappedObject

com.mongodb.DBObject getMappedObject(com.mongodb.DBObject dbObject)
Returns the mapped DBObject, potentially converting the source considering mapping metadata etc.

Parameters:
dbObject - will never be null.
Returns:
must not be null.

getReference

org.springframework.data.mongodb.core.aggregation.ExposedFields.FieldReference getReference(Field field)
Returns a ExposedFields.FieldReference for the given field or null if the context does not expose the given field.

Parameters:
field - must not be null.
Returns:

getReference

org.springframework.data.mongodb.core.aggregation.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.

Parameters:
name - must not be null or empty.
Returns:

Spring Data MongoDB - Core

Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.