|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvoldemort.store.routed.RoutedStore
voldemort.store.routed.PipelineRoutedStore
public class PipelineRoutedStore
A Store which multiplexes requests to different internal Stores
| Field Summary |
|---|
| Fields inherited from class voldemort.store.routed.RoutedStore |
|---|
failureDetector, innerStores, logger, name, readRepairer, repairReads, routingStrategy, storeDef, time, timeoutConfig |
| Constructor Summary | |
|---|---|
PipelineRoutedStore(java.lang.String name,
java.util.Map<java.lang.Integer,Store<ByteArray,byte[],byte[]>> innerStores,
java.util.Map<java.lang.Integer,NonblockingStore> nonblockingStores,
java.util.Map<java.lang.Integer,Store<ByteArray,Slop,byte[]>> slopStores,
java.util.Map<java.lang.Integer,NonblockingStore> nonblockingSlopStores,
Cluster cluster,
StoreDefinition storeDef,
boolean repairReads,
int clientZoneId,
TimeoutConfig timeoutConfig,
FailureDetector failureDetector,
boolean jmxEnabled,
int jmxId)
Create a PipelineRoutedStore |
|
| Method Summary | |
|---|---|
void |
close()
Close the store. |
boolean |
delete(ByteArray key,
Version version)
Delete all entries prior to the given version |
java.util.List<Versioned<byte[]>> |
get(ByteArray key,
byte[] transforms)
Get the value associated with the given key |
java.util.Map<ByteArray,java.util.List<Versioned<byte[]>>> |
getAll(java.lang.Iterable<ByteArray> keys,
java.util.Map<ByteArray,byte[]> transforms)
Get the values associated with the given keys and returns them in a Map of keys to a list of versioned values. |
java.util.List<Version> |
getVersions(ByteArray key)
|
boolean |
isHintedHandoffEnabled()
|
void |
put(ByteArray key,
Versioned<byte[]> versioned,
byte[] transforms)
Associate the value with the key and version in this store |
| Methods inherited from class voldemort.store.routed.RoutedStore |
|---|
getCapability, getInnerStores, getName, updateRoutingStrategy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PipelineRoutedStore(java.lang.String name,
java.util.Map<java.lang.Integer,Store<ByteArray,byte[],byte[]>> innerStores,
java.util.Map<java.lang.Integer,NonblockingStore> nonblockingStores,
java.util.Map<java.lang.Integer,Store<ByteArray,Slop,byte[]>> slopStores,
java.util.Map<java.lang.Integer,NonblockingStore> nonblockingSlopStores,
Cluster cluster,
StoreDefinition storeDef,
boolean repairReads,
int clientZoneId,
TimeoutConfig timeoutConfig,
FailureDetector failureDetector,
boolean jmxEnabled,
int jmxId)
name - The name of the storeinnerStores - The mapping of node to clientnonblockingStores - slopStores - The stores for hintscluster - Cluster definitionstoreDef - Store definitionrepairReads - Is read repair enabled?clientZoneId - Zone the client is intimeoutMs - Routing timeoutfailureDetector - Failure detector objectjmxEnabled - is monitoring enabledjmxId - unique ID for the factory instance| Method Detail |
|---|
public java.util.List<Versioned<byte[]>> get(ByteArray key,
byte[] transforms)
Store
key - The key to check for
public java.util.Map<ByteArray,java.util.List<Versioned<byte[]>>> getAll(java.lang.Iterable<ByteArray> keys,
java.util.Map<ByteArray,byte[]> transforms)
throws VoldemortException
Store
keys - The keys to check for.
VoldemortExceptionpublic java.util.List<Version> getVersions(ByteArray key)
public boolean delete(ByteArray key,
Version version)
throws VoldemortException
Store
key - The key to deleteversion - The current value of the key
VoldemortExceptionpublic boolean isHintedHandoffEnabled()
public void put(ByteArray key,
Versioned<byte[]> versioned,
byte[] transforms)
throws VoldemortException
Store
key - The key to useversioned - The value to store and its version.
VoldemortExceptionpublic void close()
Store
close in interface Store<ByteArray,byte[],byte[]>close in class RoutedStore
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||