Skip to content

Commit 741eec7

Browse files
authored
Deprecate find() method, use scan/query APIs instead. (#115)
1 parent d4fdaee commit 741eec7

File tree

4 files changed

+4
-139
lines changed

4 files changed

+4
-139
lines changed

README.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -209,17 +209,6 @@ To delete:
209209
```java
210210
mapper.delete(person);
211211
```
212-
213-
To find:
214-
215-
```java
216-
Function<Person,Boolean> function = person -> {
217-
System.out.println(person.getSsn());
218-
return true;
219-
};
220-
221-
mapper.find(Person.class, function);
222-
```
223212
224213
----
225214

src/main/java/com/aerospike/mapper/tools/IAeroMapper.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,9 @@ public interface IAeroMapper extends IBaseAeroMapper {
214214
* @param clazz - The type of the record.
215215
* @param function a Boolean function.
216216
* @throws AerospikeException an AerospikeException will be thrown in case of an error.
217+
* @deprecated use the scan/query APIs instead.
217218
*/
219+
@Deprecated
218220
<T> void find(@NotNull Class<T> clazz, Function<T, Boolean> function);
219221

220222
/**

src/main/java/com/aerospike/mapper/tools/IReactiveAeroMapper.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,9 @@ public interface IReactiveAeroMapper extends IBaseAeroMapper {
210210
* @param clazz - The type of the record.
211211
* @param function a Boolean function.
212212
* @throws AerospikeException an AerospikeException will be thrown in case of an error.
213+
* @deprecated use the scan/query APIs instead.
213214
*/
215+
@Deprecated
214216
<T> Mono<Void> find(@NotNull Class<T> clazz, Function<T, Boolean> function);
215217

216218
/**

src/test/java/com/aerospike/mapper/examples/AeroMapperExample.java

Lines changed: 0 additions & 128 deletions
This file was deleted.

0 commit comments

Comments
 (0)