Java com.mongodb.client.model Filters fields, constructors, methods, implement or subclass

Example usage for Java com.mongodb.client.model Filters fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.mongodb.client.model Filters.

The text is from its open source code.

Method

Bsonall(final String fieldName, final TItem... values)
Creates a filter that matches all documents where the value of a field is an array that contains all the specified values.
Bsonall(final String fieldName, final Iterable values)
Creates a filter that matches all documents where the value of a field is an array that contains all the specified values.
Bsonand(final Iterable filters)
Creates a filter that performs a logical AND of the provided list of filters.
Bsonand(final Bson... filters)
Creates a filter that performs a logical AND of the provided list of filters.
BsonelemMatch(final String fieldName, final Bson filter)
Creates a filter that matches all documents containing a field that is an array where at least one member of the array matches the given filter.
Bsoneq(final String fieldName, @Nullable final TItem value)
Creates a filter that matches all documents where the value of the field name equals the specified value.
Bsonexists(final String fieldName, final boolean exists)
Creates a filter that matches all documents that either contain or do not contain the given field, depending on the value of the exists parameter.
Bsonexists(final String fieldName)
Creates a filter that matches all documents that contain the given field.
Bsongt(final String fieldName, final TItem value)
Creates a filter that matches all documents where the value of the given field is greater than the specified value.
Bsongte(final String fieldName, final TItem value)
Creates a filter that matches all documents where the value of the given field is greater than or equal to the specified value.
Bsonin(final String fieldName, final TItem... values)
Creates a filter that matches all documents where the value of a field equals any value in the list of specified values.
Bsonin(final String fieldName, final Iterable values)
Creates a filter that matches all documents where the value of a field equals any value in the list of specified values.
Bsonlt(final String fieldName, final TItem value)
Creates a filter that matches all documents where the value of the given field is less than the specified value.
Bsonlte(final String fieldName, final TItem value)
Creates a filter that matches all documents where the value of the given field is less than or equal to the specified value.
Bsonne(final String fieldName, @Nullable final TItem value)
Creates a filter that matches all documents where the value of the field name does not equal the specified value.
Bsonnin(final String fieldName, final TItem... values)
Creates a filter that matches all documents where the value of a field does not equal any of the specified values or does not exist.
Bsonnin(final String fieldName, final Iterable values)
Creates a filter that matches all documents where the value of a field does not equal any of the specified values or does not exist.
Bsonnor(final Bson... filters)
Creates a filter that performs a logical NOR operation on all the specified filters.
Bsonnor(final Iterable filters)
Creates a filter that performs a logical NOR operation on all the specified filters.
Bsonnot(final Bson filter)
Creates a filter that matches all documents that do not match the passed in filter.
Bsonor(final Iterable filters)
Creates a filter that preforms a logical OR of the provided list of filters.
Bsonor(final Bson... filters)
Creates a filter that preforms a logical OR of the provided list of filters.
Bsonregex(final String fieldName, final String pattern)
Creates a filter that matches all documents where the value of the field matches the given regular expression pattern with the given options applied.
Bsonregex(final String fieldName, final Pattern pattern)
Creates a filter that matches all documents where the value of the field matches the given regular expression pattern with the given options applied.
Bsonregex(final String fieldName, final String pattern, @Nullable final String options)
Creates a filter that matches all documents where the value of the field matches the given regular expression pattern with the given options applied.
Bsonsize(final String fieldName, final int size)
Creates a filter that matches all documents where the value of a field is an array of the specified size.
Bsontext(final String search)
Creates a filter that matches all documents matching the given search term.