public class MatchOperation extends Object implements AggregationOperation
$match-operation.
We recommend to use the static factory method
Aggregation.match(org.springframework.data.mongodb.core.query.Criteria) instead of creating instances of this
class directly.
http://docs.mongodb.org/manual/reference/aggregation/match/| Constructor and Description |
|---|
MatchOperation(CriteriaDefinition criteriaDefinition)
Creates a new
MatchOperation for the given CriteriaDefinition. |
| Modifier and Type | Method and Description |
|---|---|
com.mongodb.DBObject |
toDBObject(AggregationOperationContext context)
|
public MatchOperation(CriteriaDefinition criteriaDefinition)
MatchOperation for the given CriteriaDefinition.criteriaDefinition - must not be null.public com.mongodb.DBObject toDBObject(AggregationOperationContext context)
AggregationOperationtoDBObject in interface AggregationOperationCopyright © 2011-2014–2015 Pivotal Software, Inc.. All rights reserved.