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.
|
boolean |
exists()
Check whether database exists in this storage manager.
|
StoreFeatures |
getFeatures()
Returns the features supported by this storage manager
|
default Object |
getHadoopManager()
Returns
org.janusgraph.hadoop.HadoopStoreManager |
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
ATTENTION: Invoking this method will delete ALL your data!!
BackendExceptionboolean exists()
throws BackendException
BackendExceptionStoreFeatures getFeatures()
StoreFeaturesString getName()
Examples:
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.BackendExceptiondefault Object getHadoopManager() throws BackendException
org.janusgraph.hadoop.HadoopStoreManagerHadoopStoreManager if supported.BackendExceptionCopyright © 2012–2024. All rights reserved.