diff --git a/src/main/java/org/springframework/data/aerospike/core/AerospikeOperations.java b/src/main/java/org/springframework/data/aerospike/core/AerospikeOperations.java index a50d04bc..2e86fc1d 100644 --- a/src/main/java/org/springframework/data/aerospike/core/AerospikeOperations.java +++ b/src/main/java/org/springframework/data/aerospike/core/AerospikeOperations.java @@ -438,8 +438,6 @@ public interface AerospikeOperations { * @param ids The ids of the documents to find. Must not be {@literal null}. * @param entityClass The class to extract set name from. Must not be {@literal null}. * @param query The {@link Query} to filter results. Optional argument (null if no filtering required). - * @return The matching records mapped to targetClass's type if provided (otherwise to entityClass's type), or an - * empty list if no documents found. */ void deleteByIdsUsingQuery(Collection ids, Class entityClass, @Nullable Query query); @@ -452,8 +450,6 @@ public interface AerospikeOperations { * @param entityClass The class to extract set name from. Must not be {@literal null}. * @param setName Set name to use. Must not be {@literal null}. * @param query The {@link Query} to filter results. Optional argument (null if no filtering required). - * @return The matching records mapped to targetClass's type if provided (otherwise to entityClass's type), or an - * empty list if no documents found. */ void deleteByIdsUsingQuery(Collection ids, Class entityClass, String setName, @Nullable Query query); @@ -1088,8 +1084,7 @@ List findByIdsUsingQuery(Collection ids, Class entityClass, Clas * @param ids The ids of the documents to find. Must not be {@literal null}. * @param entityClass The class to extract set name from. Must not be {@literal null}. * @param query The {@link Query} to filter results. Optional argument (null if no filtering required). - * @return The matching records mapped to targetClass's type if provided (otherwise to entityClass's type), or an - * empty list if no documents found. + * @return True if matching records exist, otherwise false. */ boolean existsByIdsUsingQuery(Collection ids, Class entityClass, @Nullable Query query); @@ -1101,8 +1096,7 @@ List findByIdsUsingQuery(Collection ids, Class entityClass, Clas * @param ids The ids of the documents to find. Must not be {@literal null}. * @param setName Set name to use. Must not be {@literal null}. * @param query The {@link Query} to filter results. Optional argument (null if no filtering required). - * @return The matching records mapped to targetClass's type if provided (otherwise to entityClass's type), or an - * empty list if no documents found. + * @return True if matching records exist, otherwise false. */ boolean existsByIdsUsingQuery(Collection ids, String setName, @Nullable Query query); @@ -1148,8 +1142,7 @@ List findByIdsUsingQuery(Collection ids, Class entityClass, Clas * @param ids The ids of the documents to find. Must not be {@literal null}. * @param entityClass The class to extract set name from. Must not be {@literal null}. * @param query The {@link Query} to filter results. Optional argument (null if no filtering required). - * @return The matching records mapped to targetClass's type if provided (otherwise to entityClass's type), or an - * empty list if no documents found. + * @return quantity of matching records. */ long countByIdsUsingQuery(Collection ids, Class entityClass, @Nullable Query query); @@ -1161,8 +1154,7 @@ List findByIdsUsingQuery(Collection ids, Class entityClass, Clas * @param ids The ids of the documents to find. Must not be {@literal null}. * @param setName Set name to use. Must not be {@literal null}. * @param query The {@link Query} to filter results. Optional argument (null if no filtering required). - * @return The matching records mapped to targetClass's type if provided (otherwise to entityClass's type), or an - * empty list if no documents found. + * @return quantity of matching records. */ long countByIdsUsingQuery(Collection ids, String setName, @Nullable Query query); diff --git a/src/main/java/org/springframework/data/aerospike/core/ReactiveAerospikeOperations.java b/src/main/java/org/springframework/data/aerospike/core/ReactiveAerospikeOperations.java index 834e2a35..cbc4e221 100644 --- a/src/main/java/org/springframework/data/aerospike/core/ReactiveAerospikeOperations.java +++ b/src/main/java/org/springframework/data/aerospike/core/ReactiveAerospikeOperations.java @@ -423,8 +423,6 @@ public interface ReactiveAerospikeOperations { * @param ids The ids of the documents to find. Must not be {@literal null}. * @param entityClass The class to extract set name from. Must not be {@literal null}. * @param query The {@link Query} to filter results. Optional argument (null if no filtering required). - * @return The matching records mapped to targetClass's type if provided (otherwise to entityClass's type), or an - * empty list if no documents found. */ Mono deleteByIdsUsingQuery(Collection ids, Class entityClass, @Nullable Query query); @@ -437,8 +435,6 @@ public interface ReactiveAerospikeOperations { * @param entityClass The class to extract set name from. Must not be {@literal null}. * @param setName Set name to use. Must not be {@literal null}. * @param query The {@link Query} to filter results. Optional argument (null if no filtering required). - * @return The matching records mapped to targetClass's type if provided (otherwise to entityClass's type), or an - * empty list if no documents found. */ Mono deleteByIdsUsingQuery(Collection ids, Class entityClass, String setName, @Nullable Query query); @@ -1069,8 +1065,7 @@ Flux findByIdsUsingQuery(Collection ids, Class entityClass, Clas * @param ids The ids of the documents to find. Must not be {@literal null}. * @param entityClass The class to extract set name from. Must not be {@literal null}. * @param query The {@link Query} to filter results. Optional argument (null if no filtering required). - * @return The matching records mapped to targetClass's type if provided (otherwise to entityClass's type), or an - * empty list if no documents found. + * @return True if matching records exist, otherwise false. */ Mono existsByIdsUsingQuery(Collection ids, Class entityClass, @Nullable Query query); @@ -1082,8 +1077,7 @@ Flux findByIdsUsingQuery(Collection ids, Class entityClass, Clas * @param ids The ids of the documents to find. Must not be {@literal null}. * @param setName Set name to use. Must not be {@literal null}. * @param query The {@link Query} to filter results. Optional argument (null if no filtering required). - * @return The matching records mapped to targetClass's type if provided (otherwise to entityClass's type), or an - * empty list if no documents found. + * @return True if matching records exist, otherwise false. */ Mono existsByIdsUsingQuery(Collection ids, String setName, @Nullable Query query); @@ -1129,8 +1123,7 @@ Flux findByIdsUsingQuery(Collection ids, Class entityClass, Clas * @param ids The ids of the documents to find. Must not be {@literal null}. * @param entityClass The class to extract set name from. Must not be {@literal null}. * @param query The {@link Query} to filter results. Optional argument (null if no filtering required). - * @return The matching records mapped to targetClass's type if provided (otherwise to entityClass's type), or an - * empty list if no documents found. + * @return Quantity of matching queries. */ Mono countByIdsUsingQuery(Collection ids, Class entityClass, @Nullable Query query); @@ -1142,8 +1135,7 @@ Flux findByIdsUsingQuery(Collection ids, Class entityClass, Clas * @param ids The ids of the documents to find. Must not be {@literal null}. * @param setName Set name to use. Must not be {@literal null}. * @param query The {@link Query} to filter results. Optional argument (null if no filtering required). - * @return The matching records mapped to targetClass's type if provided (otherwise to entityClass's type), or an - * empty list if no documents found. + * @return Quantity of matching queries. */ Mono countByIdsUsingQuery(Collection ids, String setName, @Nullable Query query);