static Filter |
Filters.all(String field,
Object val) |
Matches arrays that contain all elements specified in the query.
|
static Filter |
Filters.and(Filter... filters) |
Applies $and to a set of filters
|
static Filter |
Filters.bitsAllClear(String field,
int bitMask) |
Matches numeric or binary values in which a set of bit positions all have a value of 0.
|
static Filter |
Filters.bitsAllClear(String field,
int[] positions) |
Matches numeric or binary values in which a set of bit positions all have a value of 0.
|
static Filter |
Filters.bitsAllSet(String field,
int bitMask) |
Matches numeric or binary values in which a set of bit positions all have a value of 1.
|
static Filter |
Filters.bitsAllSet(String field,
int[] positions) |
Matches numeric or binary values in which a set of bit positions all have a value of 1.
|
static Filter |
Filters.bitsAnyClear(String field,
Object val) |
Matches numeric or binary values in which any bit from a set of bit positions has a value of 0.
|
static Filter |
Filters.bitsAnySet(String field,
Object val) |
Matches numeric or binary values in which any bit from a set of bit positions has a value of 1.
|
static Filter |
Filters.box(String field,
com.mongodb.client.model.geojson.Point bottomLeft,
com.mongodb.client.model.geojson.Point upperRight) |
Specifies a rectangular box using legacy coordinate pairs for $geoWithin queries.
|
static Filter |
Filters.center(String field,
com.mongodb.client.model.geojson.Point center,
double radius) |
Specifies a circle using legacy coordinate pairs to $geoWithin queries when using planar geometry.
|
static Filter |
Filters.centerSphere(String field,
com.mongodb.client.model.geojson.Point center,
double radius) |
Defines a circle for a geospatial query that uses spherical geometry.
|
static Filter |
Filters.comment(String field,
Object val) |
Adds a comment to a query predicate.
|
static Filter |
Filters.elemMatch(String field,
Filter... filters) |
Selects documents if element in the array field matches all the specified $elemMatch conditions.
|
Filter |
Filter.entityType(Class<?> type) |
Sets the query entity type on the filter
|
static Filter |
Filters.eq(String field,
Object val) |
Specifies equality condition.
|
static Filter |
Filters.exists(String field) |
Matches documents that have the specified field.
|
static Filter |
Filters.expr(Expression expression) |
Allows use of aggregation expressions within the query language.
|
static Filter |
Filters.geoIntersects(String field,
com.mongodb.client.model.geojson.Geometry val) |
Selects geometries that intersect with a GeoJSON geometry.
|
static Filter |
Filters.geometry(String field,
Object val) |
Specifies a geometry in GeoJSON format to geospatial query operators.
|
static Filter |
Filters.gt(String field,
Object val) |
$gt selects those documents where the value of the field is greater than the specified value.
|
static Filter |
Filters.gte(String field,
Object val) |
$gte selects the documents where the value of the field is greater than or equal to a specified value (e.g.
|
static Filter |
Filters.in(String field,
Iterable<?> val) |
The $in operator selects the documents where the value of a field equals any value in the specified array.
|
Filter |
Filter.isValidating(boolean validate) |
Sets whether to validate field names or not
|
static Filter |
Filters.jsonSchema(String field,
Object val) |
Deprecated, for removal: This API element is subject to removal in a future version.
|
static Filter |
Filters.jsonSchema(org.bson.Document schema) |
Filters documents against the given JSON Schema.
|
static Filter |
Filters.lt(String field,
Object val) |
$lt selects the documents where the value of the field is less than the specified value.
|
static Filter |
Filters.lte(String field,
Object val) |
$lte selects the documents where the value of the field is less than or equal to the specified value.
|
static Filter |
Filters.maxDistance(String field,
Object val) |
Specifies a maximum distance to limit the results of $near and $nearSphere queries.
|
static Filter |
Filters.minDistance(String field,
Object val) |
Specifies a minimum distance to limit the results of $near and $nearSphere queries.
|
static Filter |
Filters.mod(String field,
long divisor,
long remainder) |
Performs a modulo operation on the value of a field and selects documents with a specified result.
|
static Filter |
Filters.ne(String field,
Object val) |
$ne selects the documents where the value of the field is not equal to the specified value.
|
static Filter |
Filters.nin(String field,
Object val) |
$nin selects the documents where:
the field value is not in the specified array or
the field does not exist.
|
static Filter |
Filters.nor(Filter... filters) |
Applies $nor to a set of filters
|
Filter |
Filter.not() |
Negates this filter by wrapping in "$not: {}"
|
static Filter |
Filters.or(Filter... filters) |
Applies $or to a set of filters
|
static Filter |
Filters.polygon(String field,
com.mongodb.client.model.geojson.Point... points) |
Specifies a polygon to using legacy coordinate pairs for $geoWithin queries.
|
static Filter |
Filters.size(String field,
int size) |
Selects documents if the array field is a specified size.
|
static Filter |
Filters.type(String field,
Type val) |
Selects documents if a field is of the specified type.
|
static Filter |
Filters.uniqueDocs(String field,
Object val) |
Deprecated.
|
static Filter |
Filters.where(String val) |
Matches documents that satisfy a JavaScript expression.
|