public class InMemoryStoreManager extends Object implements KeyColumnValueStoreManager
Constructor and Description |
---|
InMemoryStoreManager() |
InMemoryStoreManager(Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
StoreTransaction |
beginTransaction(BaseTransactionConfig config)
Returns a transaction handle for a new transaction according to the given configuration.
|
void |
clearStorage()
Deletes and clears all database in this storage manager.
|
void |
close()
Closes the Storage Manager and all databases that have been opened.
|
StoreFeatures |
getFeatures()
Returns the features supported by this storage manager
|
List<KeyRange> |
getLocalKeyPartition()
Returns
KeyRange s locally hosted on this machine. |
String |
getName()
Return an identifier for the StoreManager.
|
void |
mutateMany(Map<String,Map<StaticBuffer,KCVMutation>> mutations,
StoreTransaction txh)
Executes multiple mutations at once.
|
KeyColumnValueStore |
openDatabase(String name,
StoreMetaData.Container metaData)
Opens an ordered database by the given name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
openDatabase
public InMemoryStoreManager()
public InMemoryStoreManager(Configuration configuration)
public StoreTransaction beginTransaction(BaseTransactionConfig config) throws BackendException
StoreManager
beginTransaction
in interface StoreManager
BackendException
public void close() throws BackendException
StoreManager
close
in interface StoreManager
BackendException
public void clearStorage() throws BackendException
StoreManager
clearStorage
in interface StoreManager
BackendException
public StoreFeatures getFeatures()
StoreManager
getFeatures
in interface StoreManager
StoreFeatures
public KeyColumnValueStore openDatabase(String name, StoreMetaData.Container metaData) throws BackendException
KeyColumnValueStoreManager
openDatabase
in interface KeyColumnValueStoreManager
name
- Name of databasemetaData
- options specific to this storeBackendException
public void mutateMany(Map<String,Map<StaticBuffer,KCVMutation>> mutations, StoreTransaction txh) throws BackendException
KeyColumnValueStoreManager
StoreManager.getFeatures()
if it is supported by a particular implementation.mutateMany
in interface KeyColumnValueStoreManager
BackendException
public List<KeyRange> getLocalKeyPartition() throws BackendException
StoreManager
KeyRange
s locally hosted on this machine. The start of
each KeyRange
is inclusive. The end is exclusive. The start and
end must each be at least 4 bytes in length.getLocalKeyPartition
in interface StoreManager
BackendException
public String getName()
StoreManager
getName
in interface StoreManager
Copyright © 2012–2015. All rights reserved.