public class SimpleAerospikeRepository<T,ID> extends Object implements AerospikeRepository<T,ID>
| Constructor and Description |
|---|
SimpleAerospikeRepository(EntityInformation<T,ID> metadata,
AerospikeOperations operations) |
| Modifier and Type | Method and Description |
|---|---|
long |
count() |
<T> void |
createIndex(Class<T> domainType,
String indexName,
String binName,
com.aerospike.client.query.IndexType indexType) |
void |
delete(T entity) |
void |
deleteAll() |
void |
deleteAll(Iterable<? extends T> entities) |
void |
deleteById(ID id) |
<T> void |
deleteIndex(Class<T> domainType,
String indexName) |
boolean |
existsById(ID id) |
List<T> |
findAll() |
Page<T> |
findAll(Pageable pageable) |
Iterable<T> |
findAll(Sort sort) |
Iterable<T> |
findAllById(Iterable<ID> ids) |
Optional<T> |
findById(ID id) |
boolean |
indexExists(String indexName)
Checks whether index by specified name exists in Aerospike.
|
<S extends T> |
save(S entity) |
<S extends T> |
saveAll(Iterable<S> entities) |
public SimpleAerospikeRepository(EntityInformation<T,ID> metadata, AerospikeOperations operations)
public Optional<T> findById(ID id)
findById in interface CrudRepository<T,ID>public <S extends T> S save(S entity)
save in interface CrudRepository<T,ID>public <S extends T> List<S> saveAll(Iterable<S> entities)
saveAll in interface CrudRepository<T,ID>public void delete(T entity)
delete in interface CrudRepository<T,ID>public Iterable<T> findAll(Sort sort)
findAll in interface PagingAndSortingRepository<T,ID>public Page<T> findAll(Pageable pageable)
findAll in interface PagingAndSortingRepository<T,ID>public boolean existsById(ID id)
existsById in interface CrudRepository<T,ID>public Iterable<T> findAllById(Iterable<ID> ids)
findAllById in interface CrudRepository<T,ID>public long count()
count in interface CrudRepository<T,ID>public void deleteById(ID id)
deleteById in interface CrudRepository<T,ID>public void deleteAll(Iterable<? extends T> entities)
deleteAll in interface CrudRepository<T,ID>public void deleteAll()
deleteAll in interface CrudRepository<T,ID>public <T> void createIndex(Class<T> domainType, String indexName, String binName, com.aerospike.client.query.IndexType indexType)
createIndex in interface AerospikeRepository<T,ID>public <T> void deleteIndex(Class<T> domainType, String indexName)
deleteIndex in interface AerospikeRepository<T,ID>public boolean indexExists(String indexName)
AerospikeRepositoryindexExists in interface AerospikeRepository<T,ID>Copyright © 2012–2020 Aerospike, Inc. All rights reserved.