Uses of Class
org.springframework.data.mongodb.core.query.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
Modifier and TypeMethodDescriptionstatic MatchOperation
Creates a newMatchOperation
using the givenCriteria
. -
Uses of Criteria in org.springframework.data.mongodb.core.query
Modifier and TypeMethodDescriptionCriteria.alike
(org.springframework.data.domain.Example<?> sample) Creates 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
Criteria.byExample
(org.springframework.data.domain.Example<?> example) 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.static Criteria
Criteria.expr
(MongoExpression expression) Static factory method to create aCriteria
matching 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$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 $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.Criteria.near
(org.springframework.data.geo.Point point) Creates a geospatial criterion using a $near operation.Criteria.nearSphere
(org.springframework.data.geo.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 keyCriteria.within
(org.springframework.data.geo.Shape shape) Creates a geospatial criterion using a $geoWithin operation.Criteria.withinSphere
(org.springframework.data.geo.Circle circle) Creates a geospatial criterion using a $geoWithin $centerSphere operation.Modifier 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.Modifier 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. -
Uses of Criteria in org.springframework.data.mongodb.gridfs