|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvoldemort.store.DelegatingStore<K,V,T>
public class DelegatingStore<K,V,T>
A Store template that delegates all operations to an inner store. Convenient for decorating a store and overriding only certain methods to add behavior.
| Constructor Summary | |
|---|---|
DelegatingStore(Store<K,V,T> innerStore)
|
|
| 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 transform)
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. |
Store<K,V,T> |
getInnerStore()
|
java.lang.String |
getName()
|
java.util.List<Version> |
getVersions(K key)
|
void |
put(K key,
Versioned<V> value,
T transform)
Associate the value with the key and version in this store |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DelegatingStore(Store<K,V,T> innerStore)
| Method Detail |
|---|
public void close()
throws VoldemortException
Store
close in interface Store<K,V,T>VoldemortException - If closing fails.
public boolean delete(K key,
Version version)
throws VoldemortException
Store
delete in interface Store<K,V,T>key - The key to deleteversion - The current value of the key
VoldemortException
public java.util.Map<K,java.util.List<Versioned<V>>> getAll(java.lang.Iterable<K> keys,
java.util.Map<K,T> transforms)
throws VoldemortException
Store
getAll in interface Store<K,V,T>keys - The keys to check for.
VoldemortException
public java.util.List<Versioned<V>> get(K key,
T transform)
throws VoldemortException
Store
get in interface Store<K,V,T>key - The key to check for
VoldemortExceptionpublic java.lang.String getName()
getName in interface Store<K,V,T>
public void put(K key,
Versioned<V> value,
T transform)
throws VoldemortException
Store
put in interface Store<K,V,T>key - The key to usevalue - The value to store and its version.
VoldemortExceptionpublic Store<K,V,T> getInnerStore()
public java.lang.Object getCapability(StoreCapabilityType capability)
Store
getCapability in interface Store<K,V,T>capability - The capability type to retrieve
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.List<Version> getVersions(K key)
getVersions in interface Store<K,V,T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||