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