Uses of Class
org.springframework.data.mongodb.core.query.Criteria
Packages that use Criteria
Package
Description
Support for the MongoDB aggregation framework.
MongoDB specific query and update support.
Support for MongoDB GridFS feature.
Ahead-Of-Time processors for MongoDB repositories.
Query derivation mechanism for MongoDB specific repositories.
-
Uses of Criteria in org.springframework.data.mongodb.core.aggregation
Methods in org.springframework.data.mongodb.core.aggregation with parameters of type CriteriaModifier and TypeMethodDescriptionstatic MatchOperationCreates a newMatchOperationusing the givenCriteria.Method parameters in org.springframework.data.mongodb.core.aggregation with type arguments of type CriteriaModifier and TypeMethodDescriptionVectorSearchOperation.withFilterBySore(Consumer<Criteria> score) Add aMatchOperationstage targeting the score field name. -
Uses of Criteria in org.springframework.data.mongodb.core.query
Methods in org.springframework.data.mongodb.core.query that return CriteriaModifier and TypeMethodDescriptionCreates a criterion using the given object as a pattern.Creates a criterion using the $all operator.Criteria.all(Collection<?> values) Creates a criterion using the $all operator.Criteria.BitwiseCriteriaOperators.allClear(int numericBitmask) Creates a criterion using $bitsAllClear matching documents where all given bit positions are clear (i.e. 0).Creates a criterion using $bitsAllClear matching documents where all given bit positions are clear (i.e. 0).Creates a criterion using $bitsAllClear matching documents where all given bit positions are clear (i.e. 0).Criteria.BitwiseCriteriaOperators.allSet(int numericBitmask) Creates a criterion using $bitsAllSet matching documents where all given bit positions are set (i.e. 1).Creates a criterion using $bitsAllSet matching documents where all given bit positions are set (i.e. 1).Creates a criterion using $bitsAllSet matching documents where all given bit positions are set (i.e. 1).Static factory method to create a Criteria using the provided keyCriteria.andDocumentStructureMatches(MongoJsonSchema schema) Creates a criterion ($jsonSchema) matching documents against a given structure defined by theMongoJsonSchema.Criteria.andOperator(Collection<Criteria> criteria) Creates a criteria using the$andoperator for all of the provided criteria.Criteria.andOperator(Criteria... criteria) Creates a criteria using the$andoperator for all of the provided criteria.Criteria.BitwiseCriteriaOperators.anyClear(int numericBitmask) Creates a criterion using $bitsAllClear matching documents where any given bit positions are clear (i.e. 0).Creates a criterion using $bitsAllClear matching documents where any given bit positions are clear (i.e. 0).Creates a criterion using $bitsAllClear matching documents where any given bit positions are clear (i.e. 0).Criteria.BitwiseCriteriaOperators.anySet(int numericBitmask) Creates a criterion using $bitsAllSet matching documents where any given bit positions are set (i.e. 1).Creates a criterion using $bitsAnySet matching documents where any given bit positions are set (i.e. 1).Creates a criterion using $bitsAnySet matching documents where any given bit positions are set (i.e. 1).static CriteriaStatic factory method to create aCriteriamatching an example object.static CriteriaStatic factory method to create aCriteriamatching an example object.Creates a criterion using the $elemMatch operatorCriteria.exists(boolean value) Creates a criterion using the $exists operator.static CriteriaCriteria.expr(MongoExpression expression) Static factory method to create aCriteriamatching a documents against the givenexpression.Creates a criterion using the $gt operator.Creates a criterion using the $gte operator.Creates a criterion using the $in operator.Criteria.in(Collection<?> values) Creates a criterion using the $in operator.Criteria.intersects(GeoJson geoJson) Creates criterion using$geoIntersectsoperator which matches intersections of the givengeoJsonstructure and the documents one.Creates a criterion using equalityCriteria.isNull()Creates a criterion using null equality comparison which matches documents that either contain the item field whose value is null or that do not contain the item field.Criteria.isNullValue()Creates a criterion using aBsonTypecomparison which matches only documents that contain the item field whose value is equal toBsonType.NULL.Creates a criterion using the $lt operator.Creates a criterion using the $lte operator.static CriteriaCriteria.matchingDocumentStructure(MongoJsonSchema schema) Static factory method to create aCriteriamatching documents against a given structure defined by theMongoJsonSchemausing ($jsonSchema) operator.Criteria.maxDistance(double maxDistance) Creates a geo-spatial criterion using a $maxDistance operation, for use with $near or $nearSphere.Criteria.minDistance(double minDistance) Creates a geospatial criterion using a $minDistance operation, for use with $near or $nearSphere.Creates a criterion using the $mod operator.Creates a criterion using the $ne operator.Creates a geospatial criterion using a $near operation.Criteria.nearSphere(Point point) Creates a geospatial criterion using a $nearSphere operation.Creates a criterion using the $nin operator.Criteria.nin(Collection<?> values) Creates a criterion using the $nin operator.Criteria.norOperator(Collection<Criteria> criteria) Creates a criteria using the$noroperator for all of the provided criteria.Criteria.norOperator(Criteria... criteria) Creates a criteria using the$noroperator for all of the provided criteria.Criteria.not()Creates a criterion using the $not meta operator which affects the clause directly followingCriteria.orOperator(Collection<Criteria> criteria) Creates a criteria using the$oroperator for all of the provided criteria.Criteria.orOperator(Criteria... criteria) Creates a criteria using the$oroperator for all provided criteria.Creates a criterion using the given operator.Creates a criterion using a $regex operator.Creates a criterion using a $regex and $options operator.Syntactical sugar forCriteria.is(Object)making obvious that we create a regex predicate.Criteria.regex(org.bson.BsonRegularExpression regex) Use a MongoDB nativeBsonRegularExpression.Criteria.sampleRate(double sampleRate) Creates a criterion using the $sampleRate operator.Criteria.size(int size) Creates a criterion using the $size operator.Criteria.type(int typeNumber) Creates a criterion using the $type operator.Criteria.type(Collection<JsonSchemaObject.Type> types) Creates a criterion using the $type operator.Criteria.type(JsonSchemaObject.Type... types) Creates a criterion using the $type operator.static CriteriaStatic factory method to create a Criteria using the provided keyCreates a geospatial criterion using a $geoWithin operation.Criteria.withinSphere(Circle circle) Creates a geospatial criterion using a $geoWithin $centerSphere operation.Methods in org.springframework.data.mongodb.core.query with parameters of type CriteriaModifier and TypeMethodDescriptionCriteria.andOperator(Criteria... criteria) Creates a criteria using the$andoperator for all of the provided criteria.Creates a criterion using the $elemMatch operatorCriteria.norOperator(Criteria... criteria) Creates a criteria using the$noroperator for all of the provided criteria.Criteria.orOperator(Criteria... criteria) Creates a criteria using the$oroperator for all provided criteria.Method parameters in org.springframework.data.mongodb.core.query with type arguments of type CriteriaModifier and TypeMethodDescriptionCriteria.andOperator(Collection<Criteria> criteria) Creates a criteria using the$andoperator for all of the provided criteria.Criteria.norOperator(Collection<Criteria> criteria) Creates a criteria using the$noroperator for all of the provided criteria.Criteria.orOperator(Collection<Criteria> criteria) Creates a criteria using the$oroperator for all of the provided criteria.Constructor parameters in org.springframework.data.mongodb.core.query with type arguments of type Criteria -
Uses of Criteria in org.springframework.data.mongodb.gridfs
Subclasses of Criteria in org.springframework.data.mongodb.gridfs -
Uses of Criteria in org.springframework.data.mongodb.repository.aot
Methods in org.springframework.data.mongodb.repository.aot that return types with arguments of type CriteriaModifier and TypeMethodDescriptionMongoAotRepositoryFragmentSupport.scoreBetween(Range.Bound<? extends Score> lower, Range.Bound<? extends Score> upper) -
Uses of Criteria in org.springframework.data.mongodb.repository.query
Subclasses with type arguments of type Criteria in org.springframework.data.mongodb.repository.queryModifier and TypeClassDescriptionclassCustom query creator to create Mongo criterias.Methods in org.springframework.data.mongodb.repository.query that return CriteriaModifier and TypeMethodDescriptionprotected Criteriaprotected Criteriaprotected CriteriaMongoQueryCreator.createContainingCriteria(Part part, MongoPersistentProperty property, Criteria criteria, Object parameter) If the target property of the comparison is of type String, then the operator checks for match using regular expression.protected Criteriaprotected Criteriaprotected Criteriaprotected Criteriaprotected CriteriaMethods in org.springframework.data.mongodb.repository.query with parameters of type CriteriaModifier and TypeMethodDescriptionprotected Criteriaprotected Queryprotected CriteriaMongoQueryCreator.createContainingCriteria(Part part, MongoPersistentProperty property, Criteria criteria, Object parameter) If the target property of the comparison is of type String, then the operator checks for match using regular expression.protected Criteriaprotected Criteriaprotected Criteriaprotected Criteriaprotected Criteria