public interface AerospikeOperations
| Modifier and Type | Method and Description |
|---|---|
<T> T |
add(T objectToAddTo,
Map<String,Long> values) |
<T> T |
add(T objectToAddTo,
String binName,
long value) |
<T> Iterable<T> |
aggregate(com.aerospike.client.query.Filter filter,
Class<T> outputType,
String module,
String function,
List<com.aerospike.client.Value> arguments) |
<T> T |
append(T objectToAppendTo,
Map<String,String> values) |
<T> T |
append(T objectToAppendTo,
String binName,
String value) |
long |
count(Class<?> type) |
long |
count(Class<?> type,
String setName) |
long |
count(Query query,
Class<?> javaType) |
<T> void |
createIndex(Class<T> domainType,
String indexName,
String binName,
com.aerospike.client.query.IndexType indexType)
Creates index by specified name in Aerospike.
|
void |
delete(Class<?> type) |
boolean |
delete(Object objectToDelete) |
boolean |
delete(Object id,
Class<?> type) |
<T> void |
deleteIndex(Class<T> domainType,
String indexName)
Deletes index by specified name from Aerospike.
|
<T> T |
execute(Supplier<T> supplier)
Execute operation against underlying store.
|
boolean |
exists(Object id,
Class<?> type) |
<T> Stream<T> |
find(Query query,
Class<T> type) |
<T> Stream<T> |
findAll(Class<T> type) |
<T> Iterable<T> |
findAll(Sort sort,
Class<T> type) |
<T> T |
findById(Object id,
Class<T> type) |
<T> List<T> |
findByIds(Iterable<?> IDs,
Class<T> type) |
<T> Stream<T> |
findInRange(long offset,
long limit,
Sort sort,
Class<T> type) |
com.aerospike.client.AerospikeClient |
getAerospikeClient() |
MappingContext<?,?> |
getMappingContext() |
String |
getSetName(Class<?> entityClass)
The Set name used for the specified class by this template.
|
boolean |
indexExists(String indexName)
Checks whether index by specified name exists in Aerospike.
|
void |
insert(Object document)
Insert operation using the WritePolicy.recordExisits policy of CREATE_ONLY
|
void |
persist(Object document,
com.aerospike.client.policy.WritePolicy writePolicy)
Persist document using specified WritePolicy
|
<T> T |
prepend(T objectToPrependTo,
Map<String,String> values) |
<T> T |
prepend(T objectToPrependTo,
String binName,
String value) |
void |
save(Object document)
Save operation.
|
void |
update(Object objectToUpdate)
Update operation using the WritePolicy.recordExisits policy of UPDATE_ONLY
|
String getSetName(Class<?> entityClass)
entityClass - must not be null.void insert(Object document)
document - MappingContext<?,?> getMappingContext()
void save(Object document)
document - void persist(Object document, com.aerospike.client.policy.WritePolicy writePolicy)
document - writePolicy - void update(Object objectToUpdate)
objectToUpdate - void delete(Class<?> type)
boolean delete(Object objectToDelete)
<T> T add(T objectToAddTo,
String binName,
long value)
<T> Iterable<T> aggregate(com.aerospike.client.query.Filter filter, Class<T> outputType, String module, String function, List<com.aerospike.client.Value> arguments)
<T> T execute(Supplier<T> supplier)
supplier - must not be null.<T> Stream<T> findInRange(long offset, long limit, Sort sort, Class<T> type)
offset - limit - sort - type - <T> void createIndex(Class<T> domainType, String indexName, String binName, com.aerospike.client.query.IndexType indexType)
domainType - indexName - binName - indexType - <T> void deleteIndex(Class<T> domainType, String indexName)
domainType - indexName - boolean indexExists(String indexName)
indexName - long count(Class<?> type)
type - com.aerospike.client.AerospikeClient getAerospikeClient()
Copyright © 2012–2019 Aerospike, Inc. All rights reserved.