public class PersistenceGraphContainerProvider extends Object implements GraphContainerProvider
GraphContainerProvider
is an example on how to use the GraphRepository
within a provider.Constructor and Description |
---|
PersistenceGraphContainerProvider(GraphRepository graphRepository) |
Modifier and Type | Method and Description |
---|---|
protected static GraphContainerInfo |
createContainerInfo() |
GraphContainerInfo |
getContainerInfo()
Invoking
GraphContainerProvider.loadGraphContainer() may take some time, so it is not feasible to invoke it,
if only the meta data of the container is requested. |
void |
init() |
ImmutableGraphContainer |
loadGraphContainer()
Returns a fully loaded
ImmutableGraphContainer object, containing ALL vertices and edges. |
public PersistenceGraphContainerProvider(GraphRepository graphRepository)
public ImmutableGraphContainer loadGraphContainer()
GraphContainerProvider
ImmutableGraphContainer
object, containing ALL vertices and edges.
May be slow.loadGraphContainer
in interface GraphContainerProvider
public GraphContainerInfo getContainerInfo()
GraphContainerProvider
GraphContainerProvider.loadGraphContainer()
may take some time, so it is not feasible to invoke it,
if only the meta data of the container is requested.
Therefore the GraphContainerProvider.getContainerInfo()
should return very quickly with the meta data of
the container and its graphs.getContainerInfo
in interface GraphContainerProvider
public void init()
protected static GraphContainerInfo createContainerInfo()
Copyright © 2021. All rights reserved.