Uses of Class
com.datastax.astra.client.model.Filter
Packages that use 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
Methods in com.datastax.astra.client with parameters of type FilterModifier and TypeMethodDescriptionintCollection.countDocuments(Filter filter, int upperBound) Implementation of the @seeCollection.countDocuments(Filter, int, CountDocumentsOptions)method with default options.intCollection.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 specifiedFindOneOptionsfor 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
Fields in com.datastax.astra.client.model declared as FilterModifier and TypeFieldDescriptionprotected FilterPageableIterable.filterOriginal command, we will edit it to iterate on pages.Methods in com.datastax.astra.client.model that return FilterModifier and TypeMethodDescriptionstatic FilterBuild a filter with the `$all` operator.static FilterCreates a filter that performs a logical AND of the provided list of filters.static FilterCreates a filter that performs a logical AND of the provided list of filters.static FilterCreates a filter that matches all documents where the value of _id field equals the specified value.static FilterHelp Building the filters.FilterBuilder.exists()Add condition exists.static FilterBuild a filter with the `$exists` operator.static FilterBuild a filter for find by id.static FilterCreates a filter that matches all documents where the value of the given field is greater than the specified value.static FilterCreates a filter that matches all documents where the value of the given field is greater than the specified value.static FilterCreates a filter that matches all documents where the value of the given field is greater than the specified value.static FilterCreates a filter that matches all documents where the value of the given field is greater than the specified value.static FilterCreates a filter that matches all documents where the value of the given field is greater than or equal to the specified value.static FilterCreates a filter that matches all documents where the value of the given field is greater than or equal to the specified value.static FilterCreates a filter that matches all documents where the value of the given field is greater than or equal to the specified value.static FilterCreates 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 FilterBuild a filter with the `$hasSize` operator.FilterBuilder.hasSubFieldsEqualsTo(Map<String, Object> value) $eq: [ ... ]static <V> FilterCreates a filter that matches all documents where the value of a field equals any value in the list of specified values.final <V> FilterFilterBuilder.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> FilterFilterBuilder.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> FilterFilterBuilder.isNotInArray(V[] value) $in: [ ... ]static FilterCreates a filter that matches all documents where the value of the given field is less than the specified value.static FilterCreates a filter that matches all documents where the value of the given field is less than the specified value.static FilterCreates a filter that matches all documents where the value of the given field is less than the specified value.static FilterCreates a filter that matches all documents where the value of the given field is less than the specified value.static FilterCreates a filter that matches all documents where the value of the given field is less than or equal to the specified value.static FilterCreates a filter that matches all documents where the value of the given field is less than or equal to the specified value.static FilterCreates a filter that matches all documents where the value of the given field is less than or equal to the specified value.static FilterCreates a filter that matches all documents where the value of the given field is less than or equal to the specified value.static FilterCreates a filter that matches all documents where the value of the field name does not equal the specified value.static <V> FilterCreates a filter that matches all documents where the value of a field equals any value in the list of specified values.static FilterCreates a filter that performs a logical NOT of the provided filterstatic FilterCreates a filter that performs a logical OR of the provided list of filters.static FilterCreates 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 operatorMethods in com.datastax.astra.client.model with parameters of type FilterModifier and TypeMethodDescriptionstatic FilterCreates a filter that performs a logical AND of the provided list of filters.static FilterCreates a filter that performs a logical NOT of the provided filterstatic FilterCreates a filter that performs a logical OR of the provided list of filters.Command.withFilter(Filter filter) Builder pattern, update filter.Method parameters in com.datastax.astra.client.model with type arguments of type FilterModifier and TypeMethodDescriptionstatic FilterCreates a filter that performs a logical AND of the provided list of filters.static FilterCreates a filter that performs a logical OR of the provided list of filters.Constructors in com.datastax.astra.client.model with parameters of type FilterModifierConstructorDescriptionDistinctIterable(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.protectedFilterBuilder(Filter filter, String fieldName) Only constructor allowedFindIterable(Collection<T> collection, Filter filter, FindOptions options) Constructor for a cursor over the elements of the find.