public class SimpleReactiveCassandraRepository<T,ID> extends Object implements ReactiveCassandraRepository<T,ID>
| Constructor and Description |
|---|
SimpleReactiveCassandraRepository(CassandraEntityInformation<T,ID> metadata,
ReactiveCassandraOperations operations)
Create a new
SimpleReactiveCassandraRepository for the given CassandraEntityInformation and
ReactiveCassandraOperations. |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Long> |
count() |
reactor.core.publisher.Mono<Void> |
delete(T entity) |
reactor.core.publisher.Mono<Void> |
deleteAll() |
reactor.core.publisher.Mono<Void> |
deleteAll(Iterable<? extends T> entities) |
reactor.core.publisher.Mono<Void> |
deleteAll(org.reactivestreams.Publisher<? extends T> entityStream) |
reactor.core.publisher.Mono<Void> |
deleteById(ID id) |
reactor.core.publisher.Mono<Void> |
deleteById(org.reactivestreams.Publisher<ID> publisher) |
reactor.core.publisher.Mono<Boolean> |
existsById(ID id) |
reactor.core.publisher.Mono<Boolean> |
existsById(org.reactivestreams.Publisher<ID> publisher) |
reactor.core.publisher.Flux<T> |
findAll() |
reactor.core.publisher.Flux<T> |
findAllById(Iterable<ID> ids)
Note: Cassandra supports single-field
IN queries only. |
reactor.core.publisher.Flux<T> |
findAllById(org.reactivestreams.Publisher<ID> idStream)
Fetches each row individually.
|
reactor.core.publisher.Mono<T> |
findById(ID id) |
reactor.core.publisher.Mono<T> |
findById(org.reactivestreams.Publisher<ID> publisher) |
<S extends T> |
insert(Iterable<S> entities)
Inserts the given entities.
|
<S extends T> |
insert(org.reactivestreams.Publisher<S> entityStream)
Inserts the given a given entities.
|
<S extends T> |
insert(S entity)
Inserts the given entity.
|
<S extends T> |
save(S entity) |
<S extends T> |
saveAll(Iterable<S> entities) |
<S extends T> |
saveAll(org.reactivestreams.Publisher<S> entityStream) |
public SimpleReactiveCassandraRepository(CassandraEntityInformation<T,ID> metadata, ReactiveCassandraOperations operations)
SimpleReactiveCassandraRepository for the given CassandraEntityInformation and
ReactiveCassandraOperations.metadata - must not be null.operations - must not be null.public <S extends T> reactor.core.publisher.Mono<S> save(S entity)
save in interface ReactiveCrudRepository<T,ID>public <S extends T> reactor.core.publisher.Flux<S> saveAll(Iterable<S> entities)
saveAll in interface ReactiveCrudRepository<T,ID>public <S extends T> reactor.core.publisher.Flux<S> saveAll(org.reactivestreams.Publisher<S> entityStream)
saveAll in interface ReactiveCrudRepository<T,ID>public <S extends T> reactor.core.publisher.Mono<S> insert(S entity)
ReactiveCassandraRepositoryReactiveCrudRepository.save(Object) instead to avoid the usage of store-specific API.insert in interface ReactiveCassandraRepository<T,ID>entity - must not be null.public <S extends T> reactor.core.publisher.Flux<S> insert(Iterable<S> entities)
ReactiveCassandraRepositoryReactiveCrudRepository.save(Object) instead to avoid the usage of store-specific API.insert in interface ReactiveCassandraRepository<T,ID>entities - must not be null.public <S extends T> reactor.core.publisher.Flux<S> insert(org.reactivestreams.Publisher<S> entityStream)
ReactiveCassandraRepositoryReactiveCrudRepository.save(Object) instead to avoid the usage of store-specific API.insert in interface ReactiveCassandraRepository<T,ID>entityStream - must not be null.public reactor.core.publisher.Mono<Long> count()
count in interface ReactiveCrudRepository<T,ID>public reactor.core.publisher.Mono<Boolean> existsById(ID id)
existsById in interface ReactiveCrudRepository<T,ID>public reactor.core.publisher.Mono<Boolean> existsById(org.reactivestreams.Publisher<ID> publisher)
existsById in interface ReactiveCrudRepository<T,ID>public reactor.core.publisher.Mono<T> findById(ID id)
findById in interface ReactiveCrudRepository<T,ID>public reactor.core.publisher.Mono<T> findById(org.reactivestreams.Publisher<ID> publisher)
findById in interface ReactiveCrudRepository<T,ID>public reactor.core.publisher.Flux<T> findAll()
findAll in interface ReactiveCrudRepository<T,ID>public reactor.core.publisher.Flux<T> findAllById(Iterable<ID> ids)
ReactiveCassandraRepositoryIN queries only. Fetches each row individually when using
MapId with multiple components.findAllById in interface ReactiveCassandraRepository<T,ID>findAllById in interface ReactiveCrudRepository<T,ID>public reactor.core.publisher.Flux<T> findAllById(org.reactivestreams.Publisher<ID> idStream)
ReactiveCassandraRepositoryfindAllById in interface ReactiveCassandraRepository<T,ID>findAllById in interface ReactiveCrudRepository<T,ID>public reactor.core.publisher.Mono<Void> delete(T entity)
delete in interface ReactiveCrudRepository<T,ID>public reactor.core.publisher.Mono<Void> deleteById(ID id)
deleteById in interface ReactiveCrudRepository<T,ID>public reactor.core.publisher.Mono<Void> deleteById(org.reactivestreams.Publisher<ID> publisher)
deleteById in interface ReactiveCrudRepository<T,ID>public reactor.core.publisher.Mono<Void> deleteAll()
deleteAll in interface ReactiveCrudRepository<T,ID>public reactor.core.publisher.Mono<Void> deleteAll(Iterable<? extends T> entities)
deleteAll in interface ReactiveCrudRepository<T,ID>Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.