public class SimpleReactiveAerospikeRepository<T,ID> extends java.lang.Object implements ReactiveAerospikeRepository<T,ID>
| Constructor and Description |
|---|
SimpleReactiveAerospikeRepository(org.springframework.data.repository.core.EntityInformation<T,ID> metadata,
ReactiveAerospikeOperations operations) |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<java.lang.Long> |
count() |
<E> reactor.core.publisher.Mono<java.lang.Void> |
createIndex(java.lang.Class<E> domainType,
java.lang.String indexName,
java.lang.String binName,
com.aerospike.client.query.IndexType indexType) |
reactor.core.publisher.Mono<java.lang.Void> |
delete(T entity) |
reactor.core.publisher.Mono<java.lang.Void> |
deleteAll() |
reactor.core.publisher.Mono<java.lang.Void> |
deleteAll(java.lang.Iterable<? extends T> entities) |
reactor.core.publisher.Mono<java.lang.Void> |
deleteAll(org.reactivestreams.Publisher<? extends T> entityStream)
Deletes the given entities supplied by a
Publisher. |
reactor.core.publisher.Mono<java.lang.Void> |
deleteById(ID id) |
reactor.core.publisher.Mono<java.lang.Void> |
deleteById(org.reactivestreams.Publisher<ID> id)
Deletes the entity with the given id supplied by a
Publisher. |
<E> reactor.core.publisher.Mono<java.lang.Void> |
deleteIndex(java.lang.Class<E> domainType,
java.lang.String indexName) |
reactor.core.publisher.Mono<java.lang.Boolean> |
existsById(ID id) |
reactor.core.publisher.Mono<java.lang.Boolean> |
existsById(org.reactivestreams.Publisher<ID> id)
Returns whether an entity with the given id, supplied by a
Publisher, exists. |
reactor.core.publisher.Flux<T> |
findAll() |
reactor.core.publisher.Flux<T> |
findAllById(java.lang.Iterable<ID> ids) |
reactor.core.publisher.Flux<T> |
findAllById(org.reactivestreams.Publisher<ID> idStream)
Returns all instances of the type with the given IDs supplied by a
Publisher. |
reactor.core.publisher.Mono<T> |
findById(ID id) |
reactor.core.publisher.Mono<T> |
findById(org.reactivestreams.Publisher<ID> id)
Retrieves an entity by its id supplied by a
Publisher. |
reactor.core.publisher.Mono<java.lang.Boolean> |
indexExists(java.lang.String indexName) |
<S extends T> |
save(S entity) |
<S extends T> |
saveAll(java.lang.Iterable<S> entities) |
<S extends T> |
saveAll(org.reactivestreams.Publisher<S> entityStream)
Saves all given entities.
|
public SimpleReactiveAerospikeRepository(org.springframework.data.repository.core.EntityInformation<T,ID> metadata, ReactiveAerospikeOperations operations)
public reactor.core.publisher.Mono<T> findById(org.reactivestreams.Publisher<ID> id)
Publisher.findById in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID>id - must not be null. Uses the first emitted element to perform the find-query.Mono emitting the entity with the given id or Mono.empty() if none found.java.lang.IllegalArgumentException - in case the given Publisher id is null.public <S extends T> reactor.core.publisher.Mono<S> save(S entity)
public <S extends T> reactor.core.publisher.Flux<S> saveAll(java.lang.Iterable<S> entities)
public <S extends T> reactor.core.publisher.Flux<S> saveAll(org.reactivestreams.Publisher<S> entityStream)
public reactor.core.publisher.Mono<java.lang.Void> delete(T entity)
public reactor.core.publisher.Mono<java.lang.Boolean> existsById(ID id)
public reactor.core.publisher.Mono<java.lang.Boolean> existsById(org.reactivestreams.Publisher<ID> id)
Publisher, exists. Uses the first emitted
element to perform the exists-query.existsById in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID>id - must not be null.Mono emitting true if an entity with the given id exists, false otherwisejava.lang.IllegalArgumentException - in case the given Publisher id is null.public reactor.core.publisher.Flux<T> findAll()
public reactor.core.publisher.Flux<T> findAllById(org.reactivestreams.Publisher<ID> idStream)
Publisher.public reactor.core.publisher.Mono<java.lang.Long> count()
public reactor.core.publisher.Mono<java.lang.Void> deleteById(ID id)
public reactor.core.publisher.Mono<java.lang.Void> deleteById(org.reactivestreams.Publisher<ID> id)
Publisher.public reactor.core.publisher.Mono<java.lang.Void> deleteAll(java.lang.Iterable<? extends T> entities)
public reactor.core.publisher.Mono<java.lang.Void> deleteAll(org.reactivestreams.Publisher<? extends T> entityStream)
Publisher.deleteAll in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID>entityStream - must not be null.Mono signaling when operation has completed.java.lang.IllegalArgumentException - in case the given Publisher entityStream is null.public reactor.core.publisher.Mono<java.lang.Void> deleteAll()
public <E> reactor.core.publisher.Mono<java.lang.Void> createIndex(java.lang.Class<E> domainType,
java.lang.String indexName,
java.lang.String binName,
com.aerospike.client.query.IndexType indexType)
createIndex in interface ReactiveAerospikeRepository<T,ID>public <E> reactor.core.publisher.Mono<java.lang.Void> deleteIndex(java.lang.Class<E> domainType,
java.lang.String indexName)
deleteIndex in interface ReactiveAerospikeRepository<T,ID>public reactor.core.publisher.Mono<java.lang.Boolean> indexExists(java.lang.String indexName)
indexExists in interface ReactiveAerospikeRepository<T,ID>