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.
-
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 MatchOperation
Creates a newMatchOperation
using the givenCriteria
. -
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$and
operator for all of the provided criteria.Criteria.andOperator
(Criteria... criteria) Creates a criteria using the$and
operator 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 Criteria
Static factory method to create aCriteria
matching an example object.static Criteria
Static factory method to create aCriteria
matching an example object.Creates a criterion using the $elemMatch operatorCriteria.exists
(boolean value) Creates a criterion using the $exists operator.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$geoIntersects
operator which matches intersections of the givengeoJson
structure 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 aBsonType
comparison 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 Criteria
Criteria.matchingDocumentStructure
(MongoJsonSchema schema) Static factory method to create aCriteria
matching documents against a given structure defined by theMongoJsonSchema
using ($jsonSchema
) operator.Criteria.maxDistance
(double maxDistance) Creates a geo-spatial criterion using a $maxDistance operation, for use with $nearCriteria.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$nor
operator for all of the provided criteria.Criteria.norOperator
(Criteria... criteria) Creates a criteria using the$nor
operator 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$or
operator for all of the provided criteria.Criteria.orOperator
(Criteria... criteria) Creates a criteria using the$or
operator for all of the provided criteria.Creates a criterion using a $regex operator.Creates a criterion using a $regex and $options operator.Syntactical sugar foris(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 Criteria
Static 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$and
operator for all of the provided criteria.Creates a criterion using the $elemMatch operatorCriteria.norOperator
(Criteria... criteria) Creates a criteria using the$nor
operator for all of the provided criteria.Criteria.orOperator
(Criteria... criteria) Creates a criteria using the$or
operator for all of the 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$and
operator for all of the provided criteria.Criteria.norOperator
(Collection<Criteria> criteria) Creates a criteria using the$nor
operator for all of the provided criteria.Criteria.orOperator
(Collection<Criteria> criteria) Creates a criteria using the$or
operator 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