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)
|
public MatchOperation(CriteriaDefinition criteriaDefinition)
MatchOperation
for the given CriteriaDefinition
.criteriaDefinition
- must not be null.public org.bson.Document toDocument(AggregationOperationContext context)
AggregationOperation
toDocument
in interface AggregationOperation
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.