Uses of Class
com.datastax.astra.client.model.Filter
Package
Description
Entrypoint and core classes for the client.
Domain model classes with
Requests
, Results
, Options
and Iterables
.-
Uses of Filter in com.datastax.astra.client
Modifier and TypeMethodDescriptionint
Collection.countDocuments
(Filter filter, int upperBound) Implementation of the @seeCollection.countDocuments(Filter, int, CountDocumentsOptions)
method with default options.int
Collection.countDocuments
(Filter filter, int upperBound, CountDocumentsOptions options) Counts the number of documents in the collection with a filter.Collection.deleteMany
(Filter filter) Removes all documents from the collection that match the given query filter.Collection.deleteMany
(Filter filter, DeleteManyOptions options) Removes all documents from the collection that match the given query filter.Removes at most one document from the collection that matches the given filter.Collection.deleteOne
(Filter filter, DeleteOneOptions deleteOneOptions) Removes at most one document from the collection that matches the given filter.<F> DistinctIterable
<T, F> Gets the distinct values of the specified field name.Retrieves documents in the collection that match the specified filter.Finds documents in the collection that match the specified filter and sorts them based on their similarity to a provided vector, limiting the number of results returned.Collection.find
(Filter filter, FindOptions options) Finds all documents in the collection.Finds documents in the collection that match the specified filter and sorts them based on their similarity to a provided vector, limiting the number of results returned.Attempts to find a single document within the collection that matches the given filter criteria.Collection.findOne
(Filter filter, FindOneOptions findOneOptions) Attempts to find a single document within the collection that matches the given filter criteria.Collection.findOneAndDelete
(Filter filter) Atomically find a document and remove it.Collection.findOneAndDelete
(Filter filter, FindOneAndDeleteOptions options) Atomically find a document and remove it.Collection.findOneAndDeleteAsync
(Filter filter) Delete and return a document asynchronous.Collection.findOneAndReplace
(Filter filter, T replacement) Atomically find a document and replace it.Collection.findOneAndReplace
(Filter filter, T replacement, FindOneAndReplaceOptions options) Atomically find a document and replace it.Collection.findOneAndUpdate
(Filter filter, Update update) Atomically find a document and update it.Collection.findOneAndUpdate
(Filter filter, Update update, FindOneAndUpdateOptions options) Atomically find a document and update it.Collection.findOneASync
(Filter filter) Initiates an asynchronous search to find a single document that matches the given filter criteria.Collection.findOneASync
(Filter filter, FindOneOptions findOneOptions) Asynchronously attempts to find a single document within the collection that matches the given filter criteria, utilizing the specifiedFindOneOptions
for the query.Collection.findPage
(Filter filter, FindOptions options) Executes a paginated 'find' query on the collection using the specified filter and find options.Collection.findPageASync
(Filter filter, FindOptions options) Executes a paginated 'find' query on the collection using the specified filter and find options asynchronously.Collection.replaceOne
(Filter filter, T replacement) Replace a single document on the collection with a new one, optionally inserting a new document if no match is found.Collection.replaceOne
(Filter filter, T replacement, ReplaceOneOptions replaceOneOptions) Replace a document in the collection according to the specified arguments.Collection.updateMany
(Filter filter, Update update) Update all documents in the collection according to the specified arguments.Collection.updateMany
(Filter filter, Update update, UpdateManyOptions options) Update all documents in the collection according to the specified arguments.Update a single document in the collection according to the specified arguments.Collection.updateOne
(Filter filter, Update update, UpdateOneOptions updateOptions) Update a single document in the collection according to the specified arguments. -
Uses of Filter in com.datastax.astra.client.model
Modifier and TypeFieldDescriptionprotected Filter
PageableIterable.filter
Original command, we will edit it to iterate on pages.Modifier and TypeMethodDescriptionstatic Filter
Build a filter with the `$all` operator.static Filter
Creates a filter that performs a logical AND of the provided list of filters.static Filter
Creates a filter that performs a logical AND of the provided list of filters.static Filter
Creates a filter that matches all documents where the value of _id field equals the specified value.static Filter
Help Building the filters.FilterBuilder.exists()
Add condition exists.static Filter
Build a filter with the `$exists` operator.static Filter
Build a filter for find by id.static Filter
Creates a filter that matches all documents where the value of the given field is greater than the specified value.static Filter
Creates a filter that matches all documents where the value of the given field is greater than the specified value.static Filter
Creates a filter that matches all documents where the value of the given field is greater than the specified value.static Filter
Creates a filter that matches all documents where the value of the given field is greater than the specified value.static Filter
Creates a filter that matches all documents where the value of the given field is greater than or equal to the specified value.static Filter
Creates a filter that matches all documents where the value of the given field is greater than or equal to the specified value.static Filter
Creates a filter that matches all documents where the value of the given field is greater than or equal to the specified value.static Filter
Creates a filter that matches all documents where the value of the given field is greater than or equal to the specified value.FilterBuilder.hasSize
(int size) Condition to evaluate sizestatic Filter
Build a filter with the `$hasSize` operator.FilterBuilder.hasSubFieldsEqualsTo
(Map<String, Object> value) $eq: [ ... ]static <V> Filter
Creates a filter that matches all documents where the value of a field equals any value in the list of specified values.final <V> Filter
FilterBuilder.isAnArrayContaining
(V... value) $eq: [ ... ]FilterBuilder.isAnArrayExactlyEqualsTo
(Object[] value) $all: [ ... ]FilterBuilder.isEqualsTo
(Object value) "fieldName": "value" ($eq is omitted)FilterBuilder.isGreaterOrEqualsThan
(Object value) Add condition is greater than.FilterBuilder.isGreaterThan
(Object value) Add condition is less than.<V> Filter
FilterBuilder.isInArray
(V[] value) $in: [ ... ]FilterBuilder.isLessOrEqualsThan
(Object value) Add condition is less than.FilterBuilder.isLessThan
(Object value) Add condition is less than.FilterBuilder.isNotEqualsTo
(Object value) Add condition is not equals to.<V> Filter
FilterBuilder.isNotInArray
(V[] value) $in: [ ... ]static Filter
Creates a filter that matches all documents where the value of the given field is less than the specified value.static Filter
Creates a filter that matches all documents where the value of the given field is less than the specified value.static Filter
Creates a filter that matches all documents where the value of the given field is less than the specified value.static Filter
Creates a filter that matches all documents where the value of the given field is less than the specified value.static Filter
Creates a filter that matches all documents where the value of the given field is less than or equal to the specified value.static Filter
Creates a filter that matches all documents where the value of the given field is less than or equal to the specified value.static Filter
Creates a filter that matches all documents where the value of the given field is less than or equal to the specified value.static Filter
Creates a filter that matches all documents where the value of the given field is less than or equal to the specified value.static Filter
Creates a filter that matches all documents where the value of the field name does not equal the specified value.static <V> Filter
Creates a filter that matches all documents where the value of a field equals any value in the list of specified values.static Filter
Creates a filter that performs a logical NOT of the provided filterstatic Filter
Creates a filter that performs a logical OR of the provided list of filters.static Filter
Creates a filter that performs a logical OR of the provided list of filters.Filter.where
(String fieldName, FilterOperator cond, Object value) Build where clause with operatorModifier and TypeMethodDescriptionstatic Filter
Creates a filter that performs a logical AND of the provided list of filters.static Filter
Creates a filter that performs a logical NOT of the provided filterstatic Filter
Creates a filter that performs a logical OR of the provided list of filters.Command.withFilter
(Filter filter) Builder pattern, update filter.Modifier and TypeMethodDescriptionstatic Filter
Creates a filter that performs a logical AND of the provided list of filters.static Filter
Creates a filter that performs a logical OR of the provided list of filters.ModifierConstructorDescriptionDistinctIterable
(Collection<T> collection, String fieldName, Filter filter, Class<F> fieldClass) Constructs an iterable that provides distinct elements from a specified collection, optionally filtered by a given criterion.protected
FilterBuilder
(Filter filter, String fieldName) Only constructor allowedFindIterable
(Collection<T> collection, Filter filter, FindOptions options) Constructor for a cursor over the elements of the find.