public interface GraphProvider<G extends com.tinkerpop.blueprints.TransactionalGraph>
This level of indirection is needed because many graph databases provide configuration and management features that are not accessible through plain Blueprints API.
| Modifier and Type | Method and Description |
|---|---|
void |
ensureIndices(G graph,
IndexSpec... indexSpecs)
Makes sure all the indexes needed for good performance.
|
G |
instantiateGraph(Configuration configuration)
Given provided configuration, tries to instantiate a graph to be used by the inventory.
|
G instantiateGraph(Configuration configuration)
configuration - the configuration of the graphvoid ensureIndices(G graph, IndexSpec... indexSpecs)
The provided set of indexes is what the implementation thinks the indices should be. The graph provider is free to make more indexes if they choose so to support the "core" set of indices.
graph - the graph instance (coming from the
instantiateGraph(org.hawkular.inventory.api.Configuration) call) to indexindexSpecs - the core set of indices to defineCopyright © 2015 Red Hat, Inc.. All rights reserved.