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
ConstructorDescriptionSimpleAerospikeRepository
(EntityInformation<T, ID> metadata, AerospikeOperations operations) -
Method Summary
Modifier and TypeMethodDescriptionlong
count()
<E> void
createIndex
(Class<E> domainType, String indexName, String binName, com.aerospike.client.query.IndexType indexType) Create an index with the specified name.void
void
void
void
deleteAllById
(Iterable<? extends ID> iterable) void
deleteById
(ID id) <E> void
deleteIndex
(Class<E> domainType, String indexName) Delete an index with the specified name.boolean
existsById
(ID id) findAll()
findAllById
(Iterable<ID> ids) boolean
indexExists
(String indexName) Checks whether an index with the specified name exists in Aerospike.<S extends T>
Ssave
(S entity)
-
Constructor Details
-
SimpleAerospikeRepository
-
-
Method Details
-
findById
- Specified by:
findById
in interfaceCrudRepository<T,
ID>
-
save
- Specified by:
save
in interfaceCrudRepository<T,
ID>
-
saveAll
- Specified by:
saveAll
in interfaceCrudRepository<T,
ID>
-
delete
- Specified by:
delete
in interfaceCrudRepository<T,
ID>
-
deleteAllById
- Specified by:
deleteAllById
in interfaceCrudRepository<T,
ID>
-
findAll
- Specified by:
findAll
in interfacePagingAndSortingRepository<T,
ID>
-
findAll
- Specified by:
findAll
in interfacePagingAndSortingRepository<T,
ID>
-
existsById
- Specified by:
existsById
in interfaceCrudRepository<T,
ID>
-
findAll
- Specified by:
findAll
in interfaceCrudRepository<T,
ID>
-
findAllById
- Specified by:
findAllById
in interfaceCrudRepository<T,
ID>
-
count
public long count()- Specified by:
count
in interfaceCrudRepository<T,
ID>
-
deleteById
- Specified by:
deleteById
in interfaceCrudRepository<T,
ID>
-
deleteAll
- Specified by:
deleteAll
in interfaceCrudRepository<T,
ID>
-
deleteAll
public void deleteAll()- Specified by:
deleteAll
in 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:AerospikeRepository
Create an index with the specified name.- Specified by:
createIndex
in interfaceAerospikeRepository<T,
ID> - 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
Description copied from interface:AerospikeRepository
Delete an index with the specified name.- Specified by:
deleteIndex
in 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:AerospikeRepository
Checks whether an index with the specified name exists in Aerospike.- Specified by:
indexExists
in interfaceAerospikeRepository<T,
ID> - Parameters:
indexName
- The Aerospike index name.- Returns:
- true if exists
-