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.
| Constructor and Description |
|---|
MatchOperation(CriteriaDefinition criteriaDefinition)
Creates a new
MatchOperation for the given CriteriaDefinition. |
| Modifier and Type | Method and Description |
|---|---|
org.bson.Document |
toDocument(AggregationOperationContext context)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoPipelineStagespublic MatchOperation(CriteriaDefinition criteriaDefinition)
MatchOperation for the given CriteriaDefinition.criteriaDefinition - must not be null.public org.bson.Document toDocument(AggregationOperationContext context)
AggregationOperationtoDocument in interface AggregationOperationcontext - the AggregationOperationContext to operate within. Must not be null.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.