org.springframework.data.mongodb.core.aggregation
Class UnwindOperation
java.lang.Object
org.springframework.data.mongodb.core.aggregation.UnwindOperation
- All Implemented Interfaces:
- AggregationOperation
public class UnwindOperation
- extends Object
- implements AggregationOperation
Encapsulates the aggregation framework $unwind-operation.
- Since:
- 1.3
- Author:
- Thomas Darimont, Oliver Gierke
- See Also:
http://docs.mongodb.org/manual/reference/aggregation/unwind/#pipe._S_unwind
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnwindOperation
public UnwindOperation(Field field)
- Creates a new
UnwindOperation for the given Field.
- Parameters:
field - must not be null.
toDBObject
public com.mongodb.DBObject toDBObject(AggregationOperationContext context)
- Description copied from interface:
AggregationOperation
- Turns the
AggregationOperation into a DBObject by using the given
AggregationOperationContext.
- Specified by:
toDBObject in interface AggregationOperation
- Returns:
- the DBObject
Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.