Class SimpleAerospikeRepository<T,ID>
java.lang.Object
org.springframework.data.aerospike.repository.support.SimpleAerospikeRepository<T,ID>
- All Implemented Interfaces:
AerospikeRepository<T,,ID> CrudRepository<T,,ID> PagingAndSortingRepository<T,,ID> Repository<T,ID>
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleAerospikeRepository(EntityInformation<T, ID> metadata, AerospikeOperations operations) -
Method Summary
Modifier and TypeMethodDescriptionlongcount()<E> voidcreateIndex(Class<E> domainType, String indexName, String binName, com.aerospike.client.query.IndexType indexType) Create an index with the specified name.voidvoidvoidvoiddeleteAllById(Iterable<? extends ID> ids) voiddeleteById(ID id) <E> voiddeleteIndex(Class<E> domainType, String indexName) Delete an index with the specified name.booleanexistsById(ID id) findAll()findAllById(Iterable<ID> ids) findUsingQuery(Query query) Run a query to find entities.booleanindexExists(String indexName) Checks whether an index with the specified name exists in Aerospike.<S extends T>
Ssave(S entity) Requires Server version 6.0+.
-
Constructor Details
-
SimpleAerospikeRepository
-
-
Method Details
-
findById
- Specified by:
findByIdin interfaceCrudRepository<T,ID>
-
save
- Specified by:
savein interfaceCrudRepository<T,ID>
-
saveAll
Requires Server version 6.0+.- Specified by:
saveAllin interfaceCrudRepository<T,ID> - Parameters:
entities- must not be null nor must it contain null.- Returns:
- List of entities
-
delete
- Specified by:
deletein interfaceCrudRepository<T,ID>
-
findAll
- Specified by:
findAllin interfacePagingAndSortingRepository<T,ID>
-
findAll
- Specified by:
findAllin interfacePagingAndSortingRepository<T,ID>
-
existsById
- Specified by:
existsByIdin interfaceCrudRepository<T,ID>
-
findAll
- Specified by:
findAllin interfaceCrudRepository<T,ID>
-
findAllById
- Specified by:
findAllByIdin interfaceCrudRepository<T,ID>
-
count
public long count()- Specified by:
countin interfaceCrudRepository<T,ID>
-
deleteById
- Specified by:
deleteByIdin interfaceCrudRepository<T,ID>
-
deleteAll
- Specified by:
deleteAllin interfaceCrudRepository<T,ID>
-
deleteAll
public void deleteAll()- Specified by:
deleteAllin interfaceCrudRepository<T,ID>
-
deleteAllById
- Specified by:
deleteAllByIdin interfaceCrudRepository<T,ID>
-
createIndex
public <E> void createIndex(Class<E> domainType, String indexName, String binName, com.aerospike.client.query.IndexType indexType) Description copied from interface:AerospikeRepositoryCreate an index with the specified name.- Specified by:
createIndexin interfaceAerospikeRepository<T,ID> - 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
Description copied from interface:AerospikeRepositoryDelete an index with the specified name.- Specified by:
deleteIndexin interfaceAerospikeRepository<T,ID> - Parameters:
domainType- The class to extract the Aerospike set from. Must not be null.indexName- The index name. Must not be null.
-
indexExists
Description copied from interface:AerospikeRepositoryChecks whether an index with the specified name exists in Aerospike.- Specified by:
indexExistsin interfaceAerospikeRepository<T,ID> - Parameters:
indexName- The Aerospike index name.- Returns:
- true if exists.
-
findUsingQuery
Description copied from interface:AerospikeRepositoryRun a query to find entities.A
Querycan be created using a qualifier. AQualifiermay contain other qualifiers and combine them using eitherFilterOperation.ANDorFilterOperation.OR.- Specified by:
findUsingQueryin interfaceAerospikeRepository<T,ID> - Parameters:
query- A query to be performed. Must not be null.- Returns:
- Iterable of entities.
-