|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Store<K,V,T>
The basic interface used for storage and storage decorators. Allows the usual crud operations. Note that certain operations rely on the correct implementation of equals and hashCode for the key. As such, arrays as keys should be avoided.
Method Summary | |
---|---|
void |
close()
Close the store. |
boolean |
delete(CompositeVoldemortRequest<K,V> request)
Delete all entries prior to the given version |
boolean |
delete(K key,
Version version)
Delete all entries prior to the given version |
java.util.List<Versioned<V>> |
get(CompositeVoldemortRequest<K,V> request)
Get the value associated with the given key |
java.util.List<Versioned<V>> |
get(K key,
T transforms)
Get the value associated with the given key |
java.util.Map<K,java.util.List<Versioned<V>>> |
getAll(CompositeVoldemortRequest<K,V> request)
Get the values associated with the given keys and returns them in a Map of keys to a list of versioned values. |
java.util.Map<K,java.util.List<Versioned<V>>> |
getAll(java.lang.Iterable<K> keys,
java.util.Map<K,T> transforms)
Get the values associated with the given keys and returns them in a Map of keys to a list of versioned values. |
java.lang.Object |
getCapability(StoreCapabilityType capability)
Get some capability of the store. |
java.lang.String |
getName()
|
java.util.List<Version> |
getVersions(K key)
Get the versions associated with the given key. |
void |
put(CompositeVoldemortRequest<K,V> request)
Associate the value with the key and version in this store |
void |
put(K key,
Versioned<V> value,
T transforms)
Associate the value with the key and version in this store |
Method Detail |
---|
java.util.List<Versioned<V>> get(K key, T transforms) throws VoldemortException
key
- The key to check for
VoldemortException
java.util.Map<K,java.util.List<Versioned<V>>> getAll(java.lang.Iterable<K> keys, java.util.Map<K,T> transforms) throws VoldemortException
keys
- The keys to check for.
VoldemortException
void put(K key, Versioned<V> value, T transforms) throws VoldemortException
key
- The key to usevalue
- The value to store and its version.
VoldemortException
boolean delete(K key, Version version) throws VoldemortException
key
- The key to deleteversion
- The current value of the key
VoldemortException
java.lang.String getName()
void close() throws VoldemortException
VoldemortException
- If closing fails.java.lang.Object getCapability(StoreCapabilityType capability)
capability
- The capability type to retrieve
NoSuchCapabilityException
- if the capaibility is not presentjava.util.List<Version> getVersions(K key)
key
- The key to retrieve the versions for
java.util.List<Versioned<V>> get(CompositeVoldemortRequest<K,V> request) throws VoldemortException
request
- Contains the key to check for and associated transforms
VoldemortException
java.util.Map<K,java.util.List<Versioned<V>>> getAll(CompositeVoldemortRequest<K,V> request) throws VoldemortException
request
- Contains the keys to check for.
VoldemortException
void put(CompositeVoldemortRequest<K,V> request) throws VoldemortException
request
- Contains the key to use along with the value and version
to use.
VoldemortException
boolean delete(CompositeVoldemortRequest<K,V> request) throws VoldemortException
request
- Contains the key to delete and current version of the key
VoldemortException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |