|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvoldemort.store.AbstractStore<K,V,T>
voldemort.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(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 transform)
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. |
Store<K,V,T> |
getInnerStore()
|
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 transform)
Associate the value with the key and version in this store |
java.lang.String |
toString()
|
| Methods inherited from class voldemort.store.AbstractStore |
|---|
getName |
| 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>close in class AbstractStore<K,V,T>VoldemortException - If closing fails.
public boolean delete(K key,
Version version)
throws VoldemortException
Store
delete in interface Store<K,V,T>delete in class AbstractStore<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>getAll in class AbstractStore<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>get in class AbstractStore<K,V,T>key - The key to check for
VoldemortException
public void put(K key,
Versioned<V> value,
T transform)
throws VoldemortException
Store
put in interface Store<K,V,T>put in class AbstractStore<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>getCapability in class AbstractStore<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)
Store
getVersions in interface Store<K,V,T>getVersions in class AbstractStore<K,V,T>key - The key to retrieve the versions for
public java.util.List<Versioned<V>> get(CompositeVoldemortRequest<K,V> request)
throws VoldemortException
Store
get in interface Store<K,V,T>get in class AbstractStore<K,V,T>request - Contains the key to check for and associated transforms
VoldemortException
public java.util.Map<K,java.util.List<Versioned<V>>> getAll(CompositeVoldemortRequest<K,V> request)
throws VoldemortException
Store
getAll in interface Store<K,V,T>getAll in class AbstractStore<K,V,T>request - Contains the keys to check for.
VoldemortException
public void put(CompositeVoldemortRequest<K,V> request)
throws VoldemortException
Store
put in interface Store<K,V,T>put in class AbstractStore<K,V,T>request - Contains the key to use along with the value and version
to use.
VoldemortException
public boolean delete(CompositeVoldemortRequest<K,V> request)
throws VoldemortException
Store
delete in interface Store<K,V,T>delete in class AbstractStore<K,V,T>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 | |||||||||