Spring Data Key-Value

org.springframework.data.keyvalue.riak.core
Interface BucketKeyValueStoreOperations

All Known Implementing Classes:
RiakTemplate

public interface BucketKeyValueStoreOperations

Author:
J. Brisbin

Method Summary
<B,K> boolean
containsKey(B bucket, K key)
          Variant of KeyValueStoreOperations.containsKey(Object) that takes a discreet bucket and key pair.
<B,K> boolean
delete(B bucket, K key)
          Delete a specific entry from this data store.
<B,K,V> V
get(B bucket, K key)
          Variant of KeyValueStoreOperations.get(Object) that takes a discreet bucket and key pair.
<B,K,V> V
getAndSet(B bucket, K key, V value)
          Variant of KeyValueStoreOperations.getAndSet(Object, Object) that takes a discreet bucket and key pair.
<B,K> byte[]
getAndSetAsBytes(B bucket, K key, byte[] value)
          Variant of KeyValueStoreOperations.getAndSetAsBytes(Object, byte[]) that takes a discreet bucket and key pair.
<B,K,V,T> T
getAndSetAsType(B bucket, K key, V value, Class<T> requiredType)
          Variant of KeyValueStoreOperations.getAndSetAsType(Object, Object, Class) that takes a discreet bucket and key pair.
<B,K> byte[]
getAsBytes(B bucket, K key)
          Variant of KeyValueStoreOperations.getAsBytes(Object) that takes a discreet bucket and key pair.
<B,K,T> T
getAsType(B bucket, K key, Class<T> requiredType)
          Variant of KeyValueStoreOperations.getAsType(Object, Class) that takes a discreet bucket and key pair.
<B,K,V> BucketKeyValueStoreOperations
set(B bucket, K key, V value)
          Variant of KeyValueStoreOperations.set(Object, Object) that takes a discreet bucket and key pair.
<B,K,V> BucketKeyValueStoreOperations
set(B bucket, K key, V value, QosParameters qosParams)
          Variant of KeyValueStoreOperations.set(Object, Object, QosParameters) that takes a discreet bucket and key pair.
<B,K> BucketKeyValueStoreOperations
setAsBytes(B bucket, K key, byte[] value)
          Variant of KeyValueStoreOperations.setAsBytes(Object, byte[]) that takes a discreet bucket and key pair.
<B,K> BucketKeyValueStoreOperations
setAsBytes(B bucket, K key, byte[] value, QosParameters qosParams)
          Variant of KeyValueStoreOperations.setAsBytes(Object, byte[], QosParameters) that takes a discreet bucket and key pair.
<B,K,V> BucketKeyValueStoreOperations
setIfKeyNonExistent(B bucket, K key, V value)
          Variant of KeyValueStoreOperations.setIfKeyNonExistent(Object, Object) that takes a discreet bucket and key pair.
<B,K> BucketKeyValueStoreOperations
setIfKeyNonExistentAsBytes(B bucket, K key, byte[] value)
          Variant of KeyValueStoreOperations.setIfKeyNonExistentAsBytes(Object, byte[]) that takes a discreet bucket and key pair.
<B,K,V> BucketKeyValueStoreOperations
setWithMetaData(B bucket, K key, V value, Map<String,String> metaData)
          Variant of KeyValueStoreOperations.setWithMetaData(Object, Object, java.util.Map) that takes a discreet bucket and key pair.
<B,K,V> BucketKeyValueStoreOperations
setWithMetaData(B bucket, K key, V value, Map<String,String> metaData, QosParameters qosParams)
          Variant of KeyValueStoreOperations.setWithMetaData(Object, Object, java.util.Map, QosParameters) that takes a discreet bucket and key pair.
 

Method Detail

set

<B,K,V> BucketKeyValueStoreOperations set(B bucket,
                                          K key,
                                          V value)
Variant of KeyValueStoreOperations.set(Object, Object) that takes a discreet bucket and key pair.

Parameters:
bucket -
key -
value -
Returns:

set

<B,K,V> BucketKeyValueStoreOperations set(B bucket,
                                          K key,
                                          V value,
                                          QosParameters qosParams)
Variant of KeyValueStoreOperations.set(Object, Object, QosParameters) that takes a discreet bucket and key pair.

Parameters:
bucket -
key -
value -
qosParams -
Returns:

setAsBytes

<B,K> BucketKeyValueStoreOperations setAsBytes(B bucket,
                                               K key,
                                               byte[] value)
Variant of KeyValueStoreOperations.setAsBytes(Object, byte[]) that takes a discreet bucket and key pair.

Parameters:
bucket -
key -
value -
Returns:

setWithMetaData

<B,K,V> BucketKeyValueStoreOperations setWithMetaData(B bucket,
                                                      K key,
                                                      V value,
                                                      Map<String,String> metaData,
                                                      QosParameters qosParams)
Variant of KeyValueStoreOperations.setWithMetaData(Object, Object, java.util.Map, QosParameters) that takes a discreet bucket and key pair.

Parameters:
bucket -
key -
value -
metaData -
qosParams -
Returns:

get

<B,K,V> V get(B bucket,
              K key)
Variant of KeyValueStoreOperations.get(Object) that takes a discreet bucket and key pair.

Parameters:
bucket -
key -
Returns:

getAsBytes

<B,K> byte[] getAsBytes(B bucket,
                        K key)
Variant of KeyValueStoreOperations.getAsBytes(Object) that takes a discreet bucket and key pair.

Parameters:
bucket -
key -
Returns:

getAsType

<B,K,T> T getAsType(B bucket,
                    K key,
                    Class<T> requiredType)
Variant of KeyValueStoreOperations.getAsType(Object, Class) that takes a discreet bucket and key pair.

Parameters:
bucket -
key -
requiredType -
Returns:

getAndSet

<B,K,V> V getAndSet(B bucket,
                    K key,
                    V value)
Variant of KeyValueStoreOperations.getAndSet(Object, Object) that takes a discreet bucket and key pair.

Parameters:
bucket -
key -
value -
Returns:

getAndSetAsBytes

<B,K> byte[] getAndSetAsBytes(B bucket,
                              K key,
                              byte[] value)
Variant of KeyValueStoreOperations.getAndSetAsBytes(Object, byte[]) that takes a discreet bucket and key pair.

Parameters:
bucket -
key -
value -
Returns:

getAndSetAsType

<B,K,V,T> T getAndSetAsType(B bucket,
                            K key,
                            V value,
                            Class<T> requiredType)
Variant of KeyValueStoreOperations.getAndSetAsType(Object, Object, Class) that takes a discreet bucket and key pair.

Parameters:
bucket -
key -
value -
requiredType -
Returns:

setIfKeyNonExistent

<B,K,V> BucketKeyValueStoreOperations setIfKeyNonExistent(B bucket,
                                                          K key,
                                                          V value)
Variant of KeyValueStoreOperations.setIfKeyNonExistent(Object, Object) that takes a discreet bucket and key pair.

Parameters:
bucket -
key -
value -
Returns:

setIfKeyNonExistentAsBytes

<B,K> BucketKeyValueStoreOperations setIfKeyNonExistentAsBytes(B bucket,
                                                               K key,
                                                               byte[] value)
Variant of KeyValueStoreOperations.setIfKeyNonExistentAsBytes(Object, byte[]) that takes a discreet bucket and key pair.

Parameters:
bucket -
key -
value -
Returns:

containsKey

<B,K> boolean containsKey(B bucket,
                          K key)
Variant of KeyValueStoreOperations.containsKey(Object) that takes a discreet bucket and key pair.

Parameters:
bucket -
key -
Returns:

delete

<B,K> boolean delete(B bucket,
                     K key)
Delete a specific entry from this data store.

Parameters:
bucket -
key -
Returns:

setAsBytes

<B,K> BucketKeyValueStoreOperations setAsBytes(B bucket,
                                               K key,
                                               byte[] value,
                                               QosParameters qosParams)
Variant of KeyValueStoreOperations.setAsBytes(Object, byte[], QosParameters) that takes a discreet bucket and key pair.

Parameters:
bucket -
key -
value -
qosParams -
Returns:

setWithMetaData

<B,K,V> BucketKeyValueStoreOperations setWithMetaData(B bucket,
                                                      K key,
                                                      V value,
                                                      Map<String,String> metaData)
Variant of KeyValueStoreOperations.setWithMetaData(Object, Object, java.util.Map) that takes a discreet bucket and key pair.

Parameters:
bucket -
key -
value -
metaData -
Returns:

Spring Data Key-Value

Copyright © 2010-2011 SpringSource. All Rights Reserved.