Example usage for Java com.mongodb.client.model Filters fields, constructors, methods, implement or subclass
The text is from its open source code.
Bson | all(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. |
Bson | all(final String fieldName, final Iterable Creates a filter that matches all documents where the value of a field is an array that contains all the specified values. |
Bson | and(final Iterable Creates a filter that performs a logical AND of the provided list of filters. |
Bson | and(final Bson... filters) Creates a filter that performs a logical AND of the provided list of filters. |
Bson | elemMatch(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. |
Bson | eq(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. |
Bson | exists(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. |
Bson | exists(final String fieldName) Creates a filter that matches all documents that contain the given field. |
Bson | gt(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. |
Bson | gte(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. |
Bson | in(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. |
Bson | in(final String fieldName, final Iterable Creates a filter that matches all documents where the value of a field equals any value in the list of specified values. |
Bson | lt(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. |
Bson | lte(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. |
Bson | ne(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. |
Bson | nin(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. |
Bson | nin(final String fieldName, final Iterable 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. |
Bson | nor(final Bson... filters) Creates a filter that performs a logical NOR operation on all the specified filters. |
Bson | nor(final Iterable Creates a filter that performs a logical NOR operation on all the specified filters. |
Bson | not(final Bson filter) Creates a filter that matches all documents that do not match the passed in filter. |
Bson | or(final Iterable Creates a filter that preforms a logical OR of the provided list of filters. |
Bson | or(final Bson... filters) Creates a filter that preforms a logical OR of the provided list of filters. |
Bson | regex(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. |
Bson | regex(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. |
Bson | regex(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. |
Bson | size(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. |
Bson | text(final String search) Creates a filter that matches all documents matching the given search term. |