Class AerospikeKeyValueAdapter
java.lang.Object
org.springframework.data.keyvalue.core.AbstractKeyValueAdapter
org.springframework.data.aerospike.core.AerospikeKeyValueAdapter
- All Implemented Interfaces:
DisposableBean,org.springframework.data.keyvalue.core.KeyValueAdapter
public class AerospikeKeyValueAdapter
extends org.springframework.data.keyvalue.core.AbstractKeyValueAdapter
An Aerospike-specific
KeyValueAdapter to implement core sore interactions to be used by the
KeyValueTemplate.- Author:
- Oliver Gierke
-
Constructor Summary
Constructors Constructor Description AerospikeKeyValueAdapter(com.aerospike.client.IAerospikeClient client, AerospikeConverter converter, String namespace) -
Method Summary
Modifier and Type Method Description voidclear()booleancontains(Object id, String keyspace)longcount(String keyspace)Objectdelete(Object id, String keyspace)voiddeleteAllOf(String keyspace)voiddestroy()CloseableIterator<Map.Entry<Object,Object>>entries(String keyspace)Collection<?>find(org.springframework.data.keyvalue.core.query.KeyValueQuery<?> query, String keyspace)Objectget(Object id, String keyspace)Collection<?>getAllOf(String keyspace)Objectput(Object id, Object item, String keyspace)Methods inherited from class org.springframework.data.keyvalue.core.AbstractKeyValueAdapter
count, delete, find, getMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.keyvalue.core.KeyValueAdapter
entries, getAllOf
-
Constructor Details
-
AerospikeKeyValueAdapter
public AerospikeKeyValueAdapter(com.aerospike.client.IAerospikeClient client, AerospikeConverter converter, String namespace)- Parameters:
client- must not be null.converter- must not be null.
-
-
Method Details
-
put
-
contains
-
get
-
delete
-
getAllOf
-
deleteAllOf
-
clear
public void clear() -
destroy
- Throws:
Exception
-
find
public Collection<?> find(org.springframework.data.keyvalue.core.query.KeyValueQuery<?> query, String keyspace)- Specified by:
findin interfaceorg.springframework.data.keyvalue.core.KeyValueAdapter- Overrides:
findin classorg.springframework.data.keyvalue.core.AbstractKeyValueAdapter
-
entries
-
count
-