public class MatchOperation extends Object implements AggregationOperation
$match
-operationhttp://docs.mongodb.org/manual/reference/aggregation/match/
Constructor and Description |
---|
MatchOperation(Criteria criteria)
Deprecated.
Use
MatchOperation(CriteriaDefinition) instead. This constructor is scheduled
for removal in the next versions. |
MatchOperation(CriteriaDefinition criteriaDefinition)
Creates a new
MatchOperation for the given CriteriaDefinition . |
Modifier and Type | Method and Description |
---|---|
com.mongodb.DBObject |
toDBObject(AggregationOperationContext context)
|
@Deprecated public MatchOperation(Criteria criteria)
MatchOperation(CriteriaDefinition)
instead. This constructor is scheduled
for removal in the next versions.MatchOperation
for the given Criteria
.criteria
- must not be null.public MatchOperation(CriteriaDefinition criteriaDefinition)
MatchOperation
for the given CriteriaDefinition
.criteriaDefinition
- must not be null.public com.mongodb.DBObject toDBObject(AggregationOperationContext context)
AggregationOperation
toDBObject
in interface AggregationOperation
Copyright © 2015. All rights reserved.