Interface AerospikeRepository<T,ID>
- All Superinterfaces:
CrudRepository<T,,ID> PagingAndSortingRepository<T,,ID> Repository<T,ID>
- All Known Implementing Classes:
SimpleAerospikeRepository
public interface AerospikeRepository<T,ID>
extends PagingAndSortingRepository<T,ID>, CrudRepository<T,ID>
Aerospike specific
Repository.- Author:
- Oliver Gierke, Peter Milne, Jean Mercier
-
Method Summary
Modifier and TypeMethodDescription<E> voidcreateIndex(Class<E> domainType, String indexName, String binName, com.aerospike.client.query.IndexType indexType) Create an index with the specified name.<E> voiddeleteIndex(Class<E> domainType, String indexName) Delete an index with the specified name.findUsingQuery(Query query) Run a query to find entities.booleanindexExists(String indexName) Checks whether an index with the specified name exists in Aerospike.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAll, findAll
-
Method Details
-
createIndex
<E> void createIndex(Class<E> domainType, String indexName, String binName, com.aerospike.client.query.IndexType indexType) Create an index with the specified name.- Parameters:
domainType- The class to extract the Aerospike set from. Must not be null.indexName- The index name. Must not be null.binName- The bin name to create the index on. Must not be null.indexType- The type of the index. Must not be null.
-
deleteIndex
Delete an index with the specified name.- Parameters:
domainType- The class to extract the Aerospike set from. Must not be null.indexName- The index name. Must not be null.
-
indexExists
Checks whether an index with the specified name exists in Aerospike.- Parameters:
indexName- The Aerospike index name.- Returns:
- true if exists.
-
findUsingQuery
Run a query to find entities.A
Querycan be created using a qualifier. AQualifiermay contain other qualifiers and combine them using eitherFilterOperation.ANDorFilterOperation.OR.- Parameters:
query- A query to be performed. Must not be null.- Returns:
- Iterable of entities.
-