|
||||||||||
| 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(K key,
Version version)
Delete all entries prior to the given version |
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(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)
|
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
VoldemortExceptionjava.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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||