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> void
createIndex
(Class<E> domainType, String indexName, String binName, com.aerospike.client.query.IndexType indexType) Create an index with the specified name.<E> void
deleteIndex
(Class<E> domainType, String indexName) Delete an index with the specified name.boolean
indexExists
(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, saveAll
Methods 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 nullindexName
- The index name. Must not be nullbinName
- The bin name to create the index on. Must not be nullindexType
- 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
-