|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvoldemort.store.bdb.BdbStorageEngine
public class BdbStorageEngine
A store that uses BDB for persistence
| Constructor Summary | |
|---|---|
BdbStorageEngine(java.lang.String name,
com.sleepycat.je.Environment environment,
com.sleepycat.je.Database database,
com.sleepycat.je.LockMode readLockMode)
|
|
BdbStorageEngine(java.lang.String name,
com.sleepycat.je.Environment environment,
com.sleepycat.je.Database database,
com.sleepycat.je.LockMode readLockMode,
boolean cursorPreload)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the store. |
boolean |
delete(ByteArray key,
Version version)
Delete all entries prior to the given version |
ClosableIterator<Pair<ByteArray,Versioned<byte[]>>> |
entries()
Get an iterator over pairs of entries in the store. |
boolean |
equals(java.lang.Object o)
|
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.lang.String |
getBdbStats()
|
java.lang.Object |
getCapability(StoreCapabilityType capability)
Get some capability of the store. |
java.lang.String |
getName()
|
com.sleepycat.je.DatabaseStats |
getStats(boolean setFast)
|
java.util.List<Version> |
getVersions(ByteArray key)
|
int |
hashCode()
|
boolean |
isPartitionAware()
Is the data persistence aware of partitions? In other words is the data internally stored on a per partition basis or together |
ClosableIterator<ByteArray> |
keys()
Get an iterator over keys in the store. |
void |
put(ByteArray key,
Versioned<byte[]> value,
byte[] transforms)
Associate the value with the key and version in this store |
void |
truncate()
Truncate all entries in the store |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BdbStorageEngine(java.lang.String name,
com.sleepycat.je.Environment environment,
com.sleepycat.je.Database database,
com.sleepycat.je.LockMode readLockMode)
public BdbStorageEngine(java.lang.String name,
com.sleepycat.je.Environment environment,
com.sleepycat.je.Database database,
com.sleepycat.je.LockMode readLockMode,
boolean cursorPreload)
| Method Detail |
|---|
public java.lang.String getName()
getName in interface Store<ByteArray,byte[],byte[]>public ClosableIterator<Pair<ByteArray,Versioned<byte[]>>> entries()
StorageEngine
entries in interface StorageEngine<ByteArray,byte[],byte[]>public ClosableIterator<ByteArray> keys()
StorageEngine
keys in interface StorageEngine<ByteArray,byte[],byte[]>public void truncate()
StorageEngine
truncate in interface StorageEngine<ByteArray,byte[],byte[]>public java.util.List<Version> getVersions(ByteArray key)
getVersions in interface Store<ByteArray,byte[],byte[]>
public java.util.List<Versioned<byte[]>> get(ByteArray key,
byte[] transforms)
throws PersistenceFailureException
Store
get in interface Store<ByteArray,byte[],byte[]>key - The key to check for
PersistenceFailureException
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
getAll in interface Store<ByteArray,byte[],byte[]>keys - The keys to check for.
VoldemortException
public void put(ByteArray key,
Versioned<byte[]> value,
byte[] transforms)
throws PersistenceFailureException
Store
put in interface Store<ByteArray,byte[],byte[]>key - The key to usevalue - The value to store and its version.
PersistenceFailureException
public boolean delete(ByteArray key,
Version version)
throws PersistenceFailureException
Store
delete in interface Store<ByteArray,byte[],byte[]>key - The key to deleteversion - The current value of the key
PersistenceFailureExceptionpublic java.lang.Object getCapability(StoreCapabilityType capability)
Store
getCapability in interface Store<ByteArray,byte[],byte[]>capability - The capability type to retrieve
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object
public void close()
throws PersistenceFailureException
Store
close in interface Store<ByteArray,byte[],byte[]>PersistenceFailureExceptionpublic com.sleepycat.je.DatabaseStats getStats(boolean setFast)
public java.lang.String getBdbStats()
public boolean isPartitionAware()
StorageEngine
isPartitionAware in interface StorageEngine<ByteArray,byte[],byte[]>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||