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,
int 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) |
int |
count(Query<?> query,
Class<?> javaType) |
<T> void |
createIndex(Class<T> domainType,
String indexName,
String binName,
com.aerospike.client.query.IndexType indexType) |
void |
delete(Class<?> type) |
<T> T |
delete(Serializable id,
Class<T> type) |
<T> T |
delete(T objectToDelete) |
<T> T |
execute(org.springframework.data.keyvalue.core.KeyValueCallback<T> action)
Execute operation against underlying store.
|
<T> Iterable<T> |
find(Query<?> query,
Class<T> type) |
<T> List<T> |
findAll(Class<T> type) |
<T> Iterable<T> |
findAll(Sort sort,
Class<T> type) |
<T> T |
findById(Serializable id,
Class<T> type) |
<T> T |
findById(Serializable id,
Class<T> type,
Class<T> domainType) |
<T> Iterable<T> |
findInRange(int offset,
int rows,
Sort sort,
Class<T> type) |
<T> T |
findOne(Serializable id,
Class<T> type) |
MappingContext<?,?> |
getMappingContext() |
String |
getSetName(Class<?> entityClass)
The Set name used for the specified class by this template.
|
void |
insert(Serializable id,
Object objectToInsert)
Insert operation using the WritePolicy.recordExisits policy of CREATE_ONLY
|
void |
insert(Serializable id,
Object objectToInsert,
com.aerospike.client.policy.WritePolicy policy)
Insert operation using the WritePolicy specified.
|
<T> T |
insert(T objectToInsert)
Insert operation using the WritePolicy.recordExisits policy of CREATE_ONLY
|
<T> T |
insert(T objectToInsert,
com.aerospike.client.policy.WritePolicy policy)
Insert operation using the WritePolicy specified.
|
<T> T |
prepend(T objectToPrependTo,
Map<String,String> values) |
<T> T |
prepend(T objectToPrependTo,
String binName,
String value) |
void |
save(Serializable id,
Object objectToInsert)
Save operation using the WritePolicy.recordExisits policy of CREATE_ONLY
|
<T> void |
save(Serializable id,
Object objectToInsert,
Class<T> domainType) |
<T> void |
save(Serializable id,
Object objectToInsert,
Class<T> domainType,
com.aerospike.client.policy.WritePolicy policy) |
void |
save(Serializable id,
Object objectToInsert,
com.aerospike.client.policy.WritePolicy policy)
Save operation using the WritePolicy specified.
|
void |
update(Object objectToUpdate) |
void |
update(Object objectToUpdate,
com.aerospike.client.policy.WritePolicy policy) |
void |
update(Serializable id,
Object objectToUpdate) |
void |
update(Serializable id,
Object objectToUpdate,
com.aerospike.client.policy.WritePolicy policy) |
String getSetName(Class<?> entityClass)
entityClass - must not be null.<T> T insert(T objectToInsert)
objectToInsert - <T> T insert(T objectToInsert,
com.aerospike.client.policy.WritePolicy policy)
objectToInsert - policy - void insert(Serializable id, Object objectToInsert)
id - objectToInsert - void insert(Serializable id, Object objectToInsert, com.aerospike.client.policy.WritePolicy policy)
id - objectToInsert - policy - MappingContext<?,?> getMappingContext()
void save(Serializable id, Object objectToInsert)
id - objectToInsert - void save(Serializable id, Object objectToInsert, com.aerospike.client.policy.WritePolicy policy)
id - objectToInsert - policy - <T> void save(Serializable id, Object objectToInsert, Class<T> domainType)
<T> void save(Serializable id, Object objectToInsert, Class<T> domainType, com.aerospike.client.policy.WritePolicy policy)
void update(Object objectToUpdate)
void update(Object objectToUpdate, com.aerospike.client.policy.WritePolicy policy)
void update(Serializable id, Object objectToUpdate)
void update(Serializable id, Object objectToUpdate, com.aerospike.client.policy.WritePolicy policy)
void delete(Class<?> type)
<T> T delete(Serializable id, Class<T> type)
<T> T delete(T objectToDelete)
<T> T findById(Serializable id, Class<T> type)
<T> T findById(Serializable id, Class<T> type, Class<T> domainType)
<T> T add(T objectToAddTo,
String binName,
int 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(org.springframework.data.keyvalue.core.KeyValueCallback<T> action)
action - must not be null.<T> Iterable<T> findInRange(int offset, int rows, Sort sort, Class<T> type)
offset - rows - sort - type - <T> void createIndex(Class<T> domainType, String indexName, String binName, com.aerospike.client.query.IndexType indexType)
T - domainType - indexName - binName - indexType - <T> T findOne(Serializable id, Class<T> type)
T - id - type - long count(Class<?> type)
type - Copyright © 2011-2015–2017 Aerospike Inc.. All rights reserved.