public interface StoreManager
| 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
KeyRanges locally hosted on this machine. |
String |
getName()
Return an identifier for the StoreManager.
|
StoreTransaction beginTransaction(BaseTransactionConfig config) throws BackendException
BackendExceptionvoid close()
throws BackendException
BackendExceptionvoid clearStorage()
throws BackendException
BackendExceptionStoreFeatures getFeatures()
StoreFeaturesString getName()
List<KeyRange> getLocalKeyPartition() throws BackendException
KeyRanges 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.UnsupportedOperationException - if the underlying store does not support this operation.
Check StoreFeatures.hasLocalKeyPartition() first.BackendExceptionCopyright © 2012–2015. All rights reserved.