Package uk.gov.gchq.gaffer.rest.factory
Interface GraphFactory
-
- All Known Implementing Classes:
DefaultGraphFactory
public interface GraphFactoryAGraphFactorycreates instances ofGraphto be reused for all queries.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GraphcreateGraph()Create a newGraphinstance.Graph.BuildercreateGraphBuilder()Create a newGraph.Builderinstance.static GraphFactorycreateGraphFactory()GraphgetGraph()Get theGraphinstance.
-
-
-
Method Detail
-
createGraphFactory
static GraphFactory createGraphFactory()
-
createGraphBuilder
Graph.Builder createGraphBuilder()
Create a newGraph.Builderinstance.- Returns:
- the graph builder
-
createGraph
default Graph createGraph()
Create a newGraphinstance. By default this is created from theGraph.Builder.- Returns:
- the graph
-
-