Uses of Interface
org.apache.tinkerpop.gremlin.structure.Graph
-
-
Uses of Graph in org.apache.tinkerpop.gremlin
Fields in org.apache.tinkerpop.gremlin declared as Graph Modifier and Type Field Description protected Graph
AbstractGremlinTest. graph
Methods in org.apache.tinkerpop.gremlin that return Graph Modifier and Type Method Description Graph
GraphManager.ManagedGraphProvider. openTestGraph(org.apache.commons.configuration2.Configuration config)
default Graph
GraphProvider. openTestGraph(org.apache.commons.configuration2.Configuration config)
Graph
GraphManager.ManagedGraphProvider. standardTestGraph(Class<?> test, String testMethodName, LoadGraphWith.GraphData loadGraphWith)
default Graph
GraphProvider. standardTestGraph(Class<?> test, String testMethodName, LoadGraphWith.GraphData loadGraphWith)
Creates a newGraph
instance using the defaultConfiguration
fromGraphProvider.standardGraphConfiguration(Class, String, LoadGraphWith.GraphData)
.Methods in org.apache.tinkerpop.gremlin that return types with arguments of type Graph Modifier and Type Method Description static Consumer<Graph>
AbstractGremlinTest. getAssertVertexEdgeCounts(int expectedVertexCount, int expectedEdgeCount)
static org.javatuples.Pair<Class<? extends GraphProvider>,Class<? extends Graph>>
AbstractGremlinSuite. getGraphProviderClass(Class<?> klass)
Class<? extends Graph>
graph()
The class of theGraph
that will be returned by theGraphProvider
Methods in org.apache.tinkerpop.gremlin with parameters of type Graph Modifier and Type Method Description protected void
AbstractGremlinTest. afterLoadGraphWith(Graph g)
static void
AbstractGremlinTest. assertVertexEdgeCounts(Graph graph, int expectedVertexCount, int expectedEdgeCount)
protected void
AbstractGremlinTest. beforeLoadGraphWith(Graph g)
void
AbstractFileGraphProvider. clear(Graph graph, org.apache.commons.configuration2.Configuration configuration)
void
GraphManager.ManagedGraphProvider. clear(Graph graph, org.apache.commons.configuration2.Configuration configuration)
void
GraphProvider. clear(Graph graph, org.apache.commons.configuration2.Configuration configuration)
Clears aGraph
of all data and settings.static void
GraphHelper. cloneElements(Graph original, Graph clone)
make a deep clone of the graph elements that preserves idsEdge
AbstractGremlinTest. convertToEdge(Graph graph, String outVertexName, String edgeLabel, String inVertexName)
Object
AbstractGremlinTest. convertToEdgeId(Graph graph, String outVertexName, String edgeLabel, String inVertexName)
Vertex
AbstractGremlinTest. convertToVertex(Graph graph, String vertexName)
Object
AbstractGremlinTest. convertToVertexId(Graph graph, String vertexName)
Looks up the identifier as generated by the current source graph being tested.GraphTraversal<Vertex,VertexProperty<Object>>
AbstractGremlinTest. convertToVertexProperty(Graph graph, String vertexName, String vertexPropertyKey)
GraphTraversal<Vertex,Object>
AbstractGremlinTest. convertToVertexPropertyId(Graph graph, String vertexName, String vertexPropertyKey)
static void
TestHelper. createRandomGraph(Graph graph, int numberOfVertices, int maxNumberOfEdgesPerVertex)
GraphComputer
GraphManager.ManagedGraphProvider. getGraphComputer(Graph graph)
default GraphComputer
GraphProvider. getGraphComputer(Graph graph)
Create aGraphComputer
from theGraph
instance.protected String
AbstractFileGraphProvider. getInputLocation(Graph g, LoadGraphWith.GraphData graphData)
void
AbstractGraphProvider. loadGraphData(Graph graph, LoadGraphWith loadGraphWith, Class testClass, String testName)
void
GraphManager.ManagedGraphProvider. loadGraphData(Graph graph, LoadGraphWith loadGraphWith, Class testClass, String testName)
void
GraphProvider. loadGraphData(Graph graph, LoadGraphWith loadGraphWith, Class testClass, String testName)
Tests are annotated with aLoadGraphWith
annotation.protected void
AbstractGraphProvider. readIntoGraph(Graph graph, String path)
Used by the default implementation ofAbstractGraphProvider.loadGraphData(Graph, LoadGraphWith, Class, String)
to read the graph from a Kryo file using the defaultGryoReader
implementation.GraphTraversalSource
GraphManager.ManagedGraphProvider. traversal(Graph graph)
GraphTraversalSource
GraphManager.ManagedGraphProvider. traversal(Graph graph, TraversalStrategy... strategies)
default GraphTraversalSource
GraphProvider. traversal(Graph graph)
Create aGraphTraversalSource
from aGraph
instance.default GraphTraversalSource
GraphProvider. traversal(Graph graph, TraversalStrategy... strategies)
Create aGraphTraversalSource
from aGraph
instance.void
AbstractGremlinTest. tryCommit(Graph graph)
Utility method that commits if the graph supports transactions.void
AbstractGremlinTest. tryCommit(Graph graph, Consumer<Graph> assertFunction)
Utility method that commits if the graph supports transactions and executes an assertion function before and after the commit.void
AbstractGremlinTest. tryRollback(Graph graph)
Utility method that rollsback if the graph supports transactions.Method parameters in org.apache.tinkerpop.gremlin with type arguments of type Graph Modifier and Type Method Description void
AbstractGremlinTest. tryCommit(Graph graph, Consumer<Graph> assertFunction)
Utility method that commits if the graph supports transactions and executes an assertion function before and after the commit. -
Uses of Graph in org.apache.tinkerpop.gremlin.algorithm.generator
Fields in org.apache.tinkerpop.gremlin.algorithm.generator declared as Graph Modifier and Type Field Description protected Graph
AbstractGenerator. g
Methods in org.apache.tinkerpop.gremlin.algorithm.generator with parameters of type Graph Modifier and Type Method Description protected void
CommunityGeneratorTest.DifferentDistributionsTest. afterLoadGraphWith(Graph graph)
protected void
CommunityGeneratorTest.ProcessorTest. afterLoadGraphWith(Graph graph)
protected void
DistributionGeneratorTest.DifferentDistributionsTest. afterLoadGraphWith(Graph graph)
protected void
DistributionGeneratorTest.ProcessorTest. afterLoadGraphWith(Graph graph)
static CommunityGenerator.Builder
CommunityGenerator. build(Graph g)
static DistributionGenerator.Builder
DistributionGenerator. build(Graph g)
protected boolean
AbstractGeneratorTest. same(Graph g1, Graph g2)
Asserts that two graphs are the "same" in way of structure.protected Iterable<Vertex>
CommunityGeneratorTest.DifferentDistributionsTest. verticesByOid(Graph graph)
protected Iterable<Vertex>
DistributionGeneratorTest.DifferentDistributionsTest. verticesByOid(Graph graph)
-
Uses of Graph in org.apache.tinkerpop.gremlin.groovy.jsr223.dsl.credential
Constructors in org.apache.tinkerpop.gremlin.groovy.jsr223.dsl.credential with parameters of type Graph Constructor Description CredentialTraversalSource(Graph graph)
CredentialTraversalSource(Graph graph, TraversalStrategies strategies)
CredentialTraversalSourceDsl(Graph graph)
CredentialTraversalSourceDsl(Graph graph, TraversalStrategies traversalStrategies)
DefaultCredentialTraversal(Graph graph)
-
Uses of Graph in org.apache.tinkerpop.gremlin.language.grammar
Constructors in org.apache.tinkerpop.gremlin.language.grammar with parameters of type Graph Constructor Description GremlinAntlrToJava(String traversalSourceName, Graph graph, Supplier<GraphTraversal<?,?>> createAnonymous)
GremlinAntlrToJava(String traversalSourceName, Graph graph, Supplier<GraphTraversal<?,?>> createAnonymous, GraphTraversalSource g, VariableResolver variableResolver)
GremlinAntlrToJava(Graph graph)
Constructs a new instance that is bound to the specifiedGraph
instance.GremlinAntlrToJava(Graph graph, Supplier<GraphTraversal<?,?>> createAnonymous)
GremlinAntlrToJava(Graph graph, VariableResolver variableResolver)
Constructs a new instance that is bound to the specifiedGraph
instance.NoOpTerminalVisitor(String traversalSourceName, Graph graph, Supplier<GraphTraversal<?,?>> createAnonymous, GraphTraversalSource g, VariableResolver variableResolver)
NoOpTerminalVisitor(Graph graph, VariableResolver variableResolver)
-
Uses of Graph in org.apache.tinkerpop.gremlin.process.computer
Methods in org.apache.tinkerpop.gremlin.process.computer that return Graph Modifier and Type Method Description Graph
ComputerResult. graph()
Methods in org.apache.tinkerpop.gremlin.process.computer with parameters of type Graph Modifier and Type Method Description GraphComputer
Computer. apply(Graph graph)
<P extends VertexProgram>
PVertexProgram.Builder. create(Graph graph)
static <M extends MapReduce>
MMapReduce. createMapReduce(Graph graph, org.apache.commons.configuration2.Configuration configuration)
A helper method to construct aMapReduce
given the content of the supplied configuration.static <V extends VertexProgram>
VVertexProgram. createVertexProgram(Graph graph, org.apache.commons.configuration2.Configuration configuration)
A helper method to construct aVertexProgram
given the content of the supplied configuration.void
GraphComputerTest.VertexProgramM. loadState(Graph graph, org.apache.commons.configuration2.Configuration configuration)
default void
MapReduce. loadState(Graph graph, org.apache.commons.configuration2.Configuration configuration)
When it is necessary to load the state of a MapReduce job, this method is called.default void
VertexProgram. loadState(Graph graph, org.apache.commons.configuration2.Configuration configuration)
When it is necessary to load the state of the VertexProgram, this method is called. -
Uses of Graph in org.apache.tinkerpop.gremlin.process.computer.clone
Methods in org.apache.tinkerpop.gremlin.process.computer.clone with parameters of type Graph Modifier and Type Method Description CloneVertexProgram
CloneVertexProgram.Builder. create(Graph graph)
-
Uses of Graph in org.apache.tinkerpop.gremlin.process.computer.clustering.connected
Methods in org.apache.tinkerpop.gremlin.process.computer.clustering.connected with parameters of type Graph Modifier and Type Method Description void
ConnectedComponentVertexProgram. loadState(Graph graph, org.apache.commons.configuration2.Configuration config)
-
Uses of Graph in org.apache.tinkerpop.gremlin.process.computer.clustering.peerpressure
Methods in org.apache.tinkerpop.gremlin.process.computer.clustering.peerpressure with parameters of type Graph Modifier and Type Method Description void
ClusterCountMapReduce. loadState(Graph graph, org.apache.commons.configuration2.Configuration configuration)
void
ClusterPopulationMapReduce. loadState(Graph graph, org.apache.commons.configuration2.Configuration configuration)
void
PeerPressureVertexProgram. loadState(Graph graph, org.apache.commons.configuration2.Configuration configuration)
-
Uses of Graph in org.apache.tinkerpop.gremlin.process.computer.ranking.pagerank
Methods in org.apache.tinkerpop.gremlin.process.computer.ranking.pagerank with parameters of type Graph Modifier and Type Method Description void
PageRankMapReduce. loadState(Graph graph, org.apache.commons.configuration2.Configuration configuration)
void
PageRankVertexProgram. loadState(Graph graph, org.apache.commons.configuration2.Configuration configuration)
-
Uses of Graph in org.apache.tinkerpop.gremlin.process.computer.search.path
Methods in org.apache.tinkerpop.gremlin.process.computer.search.path with parameters of type Graph Modifier and Type Method Description void
ShortestPathVertexProgram. loadState(Graph graph, org.apache.commons.configuration2.Configuration configuration)
-
Uses of Graph in org.apache.tinkerpop.gremlin.process.computer.traversal
Methods in org.apache.tinkerpop.gremlin.process.computer.traversal with parameters of type Graph Modifier and Type Method Description void
TraversalVertexProgram. loadState(Graph graph, org.apache.commons.configuration2.Configuration configuration)
-
Uses of Graph in org.apache.tinkerpop.gremlin.process.computer.traversal.step
Methods in org.apache.tinkerpop.gremlin.process.computer.traversal.step with parameters of type Graph Modifier and Type Method Description VertexProgram
VertexComputing. generateProgram(Graph graph, Memory memory)
Generate theVertexProgram
. -
Uses of Graph in org.apache.tinkerpop.gremlin.process.computer.traversal.step.map
Methods in org.apache.tinkerpop.gremlin.process.computer.traversal.step.map with parameters of type Graph Modifier and Type Method Description Iterator<Traverser.Admin<S>>
ComputerResultStep. attach(Iterator<Traverser.Admin<S>> iterator, Graph graph)
ConnectedComponentVertexProgram
ConnectedComponentVertexProgramStep. generateProgram(Graph graph, Memory memory)
PageRankVertexProgram
PageRankVertexProgramStep. generateProgram(Graph graph, Memory memory)
PeerPressureVertexProgram
PeerPressureVertexProgramStep. generateProgram(Graph graph, Memory memory)
VertexProgram
ProgramVertexProgramStep. generateProgram(Graph graph, Memory memory)
ShortestPathVertexProgram
ShortestPathVertexProgramStep. generateProgram(Graph graph, Memory memory)
TraversalVertexProgram
TraversalVertexProgramStep. generateProgram(Graph graph, Memory memory)
-
Uses of Graph in org.apache.tinkerpop.gremlin.process.computer.util
Classes in org.apache.tinkerpop.gremlin.process.computer.util that implement Graph Modifier and Type Class Description class
ComputerGraph
Fields in org.apache.tinkerpop.gremlin.process.computer.util declared as Graph Modifier and Type Field Description protected Graph
DefaultComputerResult. graph
Methods in org.apache.tinkerpop.gremlin.process.computer.util that return Graph Modifier and Type Method Description Graph
ComputerGraph.ComputerAdjacentVertex. graph()
Graph
ComputerGraph.ComputerElement. graph()
Graph
DefaultComputerResult. graph()
Methods in org.apache.tinkerpop.gremlin.process.computer.util with parameters of type Graph Modifier and Type Method Description <P extends VertexProgram>
PAbstractVertexProgramBuilder. create(Graph graph)
Constructors in org.apache.tinkerpop.gremlin.process.computer.util with parameters of type Graph Constructor Description DefaultComputerResult(Graph graph, Memory memory)
-
Uses of Graph in org.apache.tinkerpop.gremlin.process.remote.traversal
Methods in org.apache.tinkerpop.gremlin.process.remote.traversal that return types with arguments of type Graph Modifier and Type Method Description Optional<Graph>
AbstractRemoteTraversal. getGraph()
Methods in org.apache.tinkerpop.gremlin.process.remote.traversal with parameters of type Graph Modifier and Type Method Description void
AbstractRemoteTraversal. setGraph(Graph graph)
-
Uses of Graph in org.apache.tinkerpop.gremlin.process.traversal
Methods in org.apache.tinkerpop.gremlin.process.traversal that return Graph Modifier and Type Method Description Graph
TraversalSource. getGraph()
Get theGraph
associated with this traversal source.Methods in org.apache.tinkerpop.gremlin.process.traversal that return types with arguments of type Graph Modifier and Type Method Description Optional<Graph>
Traversal.Admin. getGraph()
Methods in org.apache.tinkerpop.gremlin.process.traversal with parameters of type Graph Modifier and Type Method Description void
Traversal.Admin. setGraph(Graph graph)
T
AnonymousTraversalSource. withEmbedded(Graph graph)
Creates the specifiedTraversalSource
binding an embeddedGraph
as its reference such that traversals spawned from it will execute over that reference.T
AnonymousTraversalSource. withGraph(Graph graph)
Deprecated.As of release 3.4.9, replaced byAnonymousTraversalSource.withEmbedded(Graph)
-
Uses of Graph in org.apache.tinkerpop.gremlin.process.traversal.dsl.graph
Fields in org.apache.tinkerpop.gremlin.process.traversal.dsl.graph declared as Graph Modifier and Type Field Description protected Graph
GraphTraversalSource. graph
Methods in org.apache.tinkerpop.gremlin.process.traversal.dsl.graph that return Graph Modifier and Type Method Description Graph
GraphTraversalSource. getGraph()
Constructors in org.apache.tinkerpop.gremlin.process.traversal.dsl.graph with parameters of type Graph Constructor Description DefaultGraphTraversal(Graph graph)
GraphTraversalSource(Graph graph)
GraphTraversalSource(Graph graph, TraversalStrategies traversalStrategies)
-
Uses of Graph in org.apache.tinkerpop.gremlin.process.traversal.lambda
Methods in org.apache.tinkerpop.gremlin.process.traversal.lambda that return types with arguments of type Graph Modifier and Type Method Description Optional<Graph>
AbstractLambdaTraversal. getGraph()
Methods in org.apache.tinkerpop.gremlin.process.traversal.lambda with parameters of type Graph Modifier and Type Method Description void
AbstractLambdaTraversal. setGraph(Graph graph)
-
Uses of Graph in org.apache.tinkerpop.gremlin.process.traversal.step.map
Methods in org.apache.tinkerpop.gremlin.process.traversal.step.map that return Graph Modifier and Type Method Description protected Graph
MergeStep. getGraph()
Methods in org.apache.tinkerpop.gremlin.process.traversal.step.map with parameters of type Graph Modifier and Type Method Description protected void
ProfileTest. afterLoadGraphWith(Graph graph)
void
ProgramTest.TestProgram. loadState(Graph graph, org.apache.commons.configuration2.Configuration configuration)
protected GraphTraversal
MergeStep. searchVerticesTraversal(Graph graph, Object id)
-
Uses of Graph in org.apache.tinkerpop.gremlin.process.traversal.step.sideEffect
Methods in org.apache.tinkerpop.gremlin.process.traversal.step.sideEffect that return types with arguments of type Graph Modifier and Type Method Description abstract Traversal<Vertex,Graph>
SubgraphTest. get_g_V_withSideEffectXsgX_outEXknowsX_subgraphXsgX_name_capXsgX(Object v1Id, Graph subgraph)
Traversal<Vertex,Graph>
SubgraphTest.Traversals. get_g_V_withSideEffectXsgX_outEXknowsX_subgraphXsgX_name_capXsgX(Object v1Id, Graph subgraph)
Methods in org.apache.tinkerpop.gremlin.process.traversal.step.sideEffect with parameters of type Graph Modifier and Type Method Description abstract Traversal<Vertex,Graph>
SubgraphTest. get_g_V_withSideEffectXsgX_outEXknowsX_subgraphXsgX_name_capXsgX(Object v1Id, Graph subgraph)
Traversal<Vertex,Graph>
SubgraphTest.Traversals. get_g_V_withSideEffectXsgX_outEXknowsX_subgraphXsgX_name_capXsgX(Object v1Id, Graph subgraph)
abstract Traversal<Vertex,String>
SubgraphTest. get_g_V_withSideEffectXsgX_repeatXbothEXcreatedX_subgraphXsgX_outVX_timesX5X_name_dedup(Graph subgraph)
Traversal<Vertex,String>
SubgraphTest.Traversals. get_g_V_withSideEffectXsgX_repeatXbothEXcreatedX_subgraphXsgX_outVX_timesX5X_name_dedup(Graph subgraph)
abstract Traversal<Vertex,Vertex>
SubgraphTest. get_g_withSideEffectXsgX_V_hasXname_danielX_outE_subgraphXsgX_inV(Graph subgraph)
Traversal<Vertex,Vertex>
SubgraphTest.Traversals. get_g_withSideEffectXsgX_V_hasXname_danielX_outE_subgraphXsgX_inV(Graph subgraph)
-
Uses of Graph in org.apache.tinkerpop.gremlin.process.traversal.step.util.event
Constructors in org.apache.tinkerpop.gremlin.process.traversal.step.util.event with parameters of type Graph Constructor Description ConsoleMutationListener(Graph graph)
-
Uses of Graph in org.apache.tinkerpop.gremlin.process.traversal.strategy.decoration
Constructors in org.apache.tinkerpop.gremlin.process.traversal.strategy.decoration with parameters of type Graph Constructor Description TransactionalEventQueue(Graph graph)
-
Uses of Graph in org.apache.tinkerpop.gremlin.process.traversal.util
Fields in org.apache.tinkerpop.gremlin.process.traversal.util declared as Graph Modifier and Type Field Description protected Graph
DefaultTraversal. graph
Methods in org.apache.tinkerpop.gremlin.process.traversal.util that return types with arguments of type Graph Modifier and Type Method Description Optional<Graph>
DefaultTraversal. getGraph()
Optional<Graph>
EmptyTraversal. getGraph()
Methods in org.apache.tinkerpop.gremlin.process.traversal.util with parameters of type Graph Modifier and Type Method Description Traversal.Admin<S,E>
TraversalClassFunction. apply(Graph graph)
Traversal.Admin<S,E>
TraversalObjectFunction. apply(Graph graph)
T
TraversalSourceFactory. createTraversalSource(Graph graph)
static <S,E>
PureTraversal<S,E>PureTraversal. loadState(org.apache.commons.configuration2.Configuration configuration, String configurationKey, Graph graph)
void
DefaultTraversal. setGraph(Graph graph)
void
EmptyTraversal. setGraph(Graph graph)
Constructors in org.apache.tinkerpop.gremlin.process.traversal.util with parameters of type Graph Constructor Description DefaultTraversal(Graph graph)
-
Uses of Graph in org.apache.tinkerpop.gremlin.server
Methods in org.apache.tinkerpop.gremlin.server that return Graph Modifier and Type Method Description Graph
GraphManager. getGraph(String graphName)
GetGraph
instance whose name matchesgraphName
.Graph
GraphManager. openGraph(String graphName, Function<String,Graph> supplier)
Implementation that allows for custom graph-opening implementations; if theMap
tracking graph references has aGraph
object corresponding to the graph name, then we return thatGraph
-- otherwise, we use the customFunction
to instantiate a newGraph
, add it to theMap
tracking graph references, and return saidGraph
.Graph
GraphManager. removeGraph(String graphName)
Implementation that allows for custom graph closing implementations; this method should remove theGraph
from theGraphManager
.Methods in org.apache.tinkerpop.gremlin.server with parameters of type Graph Modifier and Type Method Description void
GraphManager. putGraph(String graphName, Graph g)
Add or update the specifiedGraph
with the specified name toMap<String, Graph>
.Method parameters in org.apache.tinkerpop.gremlin.server with type arguments of type Graph Modifier and Type Method Description Graph
GraphManager. openGraph(String graphName, Function<String,Graph> supplier)
Implementation that allows for custom graph-opening implementations; if theMap
tracking graph references has aGraph
object corresponding to the graph name, then we return thatGraph
-- otherwise, we use the customFunction
to instantiate a newGraph
, add it to theMap
tracking graph references, and return saidGraph
. -
Uses of Graph in org.apache.tinkerpop.gremlin.server.handler
Methods in org.apache.tinkerpop.gremlin.server.handler with parameters of type Graph Modifier and Type Method Description protected void
AbstractSession. handleGraphOperation(SessionTask sessionTask, Bytecode bytecode, Graph graph)
-
Uses of Graph in org.apache.tinkerpop.gremlin.server.op.session
Methods in org.apache.tinkerpop.gremlin.server.op.session with parameters of type Graph Modifier and Type Method Description protected void
SessionOpProcessor. beforeProcessing(Graph graph, Context ctx)
protected void
SessionOpProcessor. handleGraphOperation(Bytecode bytecode, Graph graph, Context context)
IfBytecode
is detected to contain a "graph operation" then it gets processed by this method.protected void
SessionOpProcessor. handleIterator(Context context, Iterator itty, Graph graph)
protected void
SessionOpProcessor. onError(Graph graph, Context ctx)
protected void
SessionOpProcessor. onTraversalSuccess(Graph graph, Context ctx)
-
Uses of Graph in org.apache.tinkerpop.gremlin.server.op.traversal
Methods in org.apache.tinkerpop.gremlin.server.op.traversal with parameters of type Graph Modifier and Type Method Description protected void
TraversalOpProcessor. beforeProcessing(Graph graph, Context ctx)
protected void
TraversalOpProcessor. handleIterator(Context context, Iterator itty, Graph graph)
protected void
TraversalOpProcessor. onError(Graph graph, Context ctx, Throwable error)
protected void
TraversalOpProcessor. onTraversalSuccess(Graph graph, Context ctx)
-
Uses of Graph in org.apache.tinkerpop.gremlin.server.util
Methods in org.apache.tinkerpop.gremlin.server.util that return Graph Modifier and Type Method Description Graph
DefaultGraphManager. getGraph(String graphName)
Graph
DefaultGraphManager. openGraph(String graphName, Function<String,Graph> supplier)
Implementation that allows for custom graph-opening implementations; if theMap
tracking graph references has aGraph
object corresponding to the graph name, then we return thatGraph
-- otherwise, we use the customFunction
to instantiate a newGraph
, add it to theMap
tracking graph references, and return saidGraph
.Graph
DefaultGraphManager. removeGraph(String graphName)
Implementation that allows for custom graph closing implementations; this method should remove theGraph
from theGraphManager
.Methods in org.apache.tinkerpop.gremlin.server.util with parameters of type Graph Modifier and Type Method Description void
DefaultGraphManager. putGraph(String graphName, Graph g)
Method parameters in org.apache.tinkerpop.gremlin.server.util with type arguments of type Graph Modifier and Type Method Description Graph
DefaultGraphManager. openGraph(String graphName, Function<String,Graph> supplier)
Implementation that allows for custom graph-opening implementations; if theMap
tracking graph references has aGraph
object corresponding to the graph name, then we return thatGraph
-- otherwise, we use the customFunction
to instantiate a newGraph
, add it to theMap
tracking graph references, and return saidGraph
. -
Uses of Graph in org.apache.tinkerpop.gremlin.structure
Classes in org.apache.tinkerpop.gremlin.structure that implement Graph Modifier and Type Class Description class
RemoteGraph
RemoteGraph
is only required for integrating with the test suite as there must be aGraph
instance for the test suite to bind to.Methods in org.apache.tinkerpop.gremlin.structure with type parameters of type Graph Modifier and Type Method Description default <G extends Graph>
GTransaction. createThreadedTx()
Creates a transaction that can be executed across multiple threads.Methods in org.apache.tinkerpop.gremlin.structure that return Graph Modifier and Type Method Description Graph
Element. graph()
Get the graph that this element is within.default Graph
VertexProperty. graph()
Get the graph that this element is within. -
Uses of Graph in org.apache.tinkerpop.gremlin.structure.io
Fields in org.apache.tinkerpop.gremlin.structure.io with type parameters of type Graph Modifier and Type Field Description Function<Graph,GraphReader>
IoCustomTest. readerMaker
Function<Graph,GraphReader>
IoEdgeTest. readerMaker
Function<Graph,GraphReader>
IoPropertyTest. readerMaker
Function<Graph,GraphReader>
IoVertexTest. readerMaker
Function<Graph,GraphWriter>
IoCustomTest. writerMaker
Function<Graph,GraphWriter>
IoEdgeTest. writerMaker
Function<Graph,GraphWriter>
IoPropertyTest. writerMaker
Function<Graph,GraphWriter>
IoVertexTest. writerMaker
Methods in org.apache.tinkerpop.gremlin.structure.io with parameters of type Graph Modifier and Type Method Description static void
IoTest. assertClassicGraph(Graph g1, boolean assertDouble, boolean lossyForId)
static void
IoTest. assertCrewGraph(Graph g1, boolean lossyForId)
static void
IoTest. assertModernGraph(Graph g1, boolean assertDouble, boolean lossyForId)
static void
IoTest. assertNoEdgeGraph(Graph g1, boolean assertDouble, boolean lossyForId)
Io.Builder<? extends Io>
Io.Builder. graph(Graph g)
Providers use this method to supply the current instance of theirGraph
to the builder.static void
GraphMigrator. migrateGraph(Graph fromGraph, Graph toGraph)
Use Gryo to pipe the data from one graph to another graph.static void
GraphMigrator. migrateGraph(Graph fromGraph, Graph toGraph, GraphReader reader, GraphWriter writer)
Pipe the data from one graph to another graph.void
GraphReader. readGraph(InputStream inputStream, Graph graphToWriteTo)
Reads an entire graph from anInputStream
.void
GraphWriter. writeGraph(OutputStream outputStream, Graph g)
Write the entire graph to a stream. -
Uses of Graph in org.apache.tinkerpop.gremlin.structure.io.binary.types
Methods in org.apache.tinkerpop.gremlin.structure.io.binary.types that return Graph Modifier and Type Method Description protected Graph
GraphSerializer. readValue(Buffer buffer, GraphBinaryReader context)
Methods in org.apache.tinkerpop.gremlin.structure.io.binary.types with parameters of type Graph Modifier and Type Method Description protected void
GraphSerializer. writeValue(Graph value, Buffer buffer, GraphBinaryWriter context)
-
Uses of Graph in org.apache.tinkerpop.gremlin.structure.io.graphml
Methods in org.apache.tinkerpop.gremlin.structure.io.graphml with parameters of type Graph Modifier and Type Method Description Io.Builder<GraphMLIo>
GraphMLIo.Builder. graph(Graph g)
void
GraphMLReader. readGraph(InputStream graphInputStream, Graph graphToWriteTo)
void
GraphMLWriter. writeGraph(OutputStream outputStream, Graph g)
Write the data in a Graph to a GraphML OutputStream. -
Uses of Graph in org.apache.tinkerpop.gremlin.structure.io.graphson
Methods in org.apache.tinkerpop.gremlin.structure.io.graphson with parameters of type Graph Modifier and Type Method Description Io.Builder<GraphSONIo>
GraphSONIo.Builder. graph(Graph g)
void
GraphSONReader. readGraph(InputStream inputStream, Graph graphToWriteTo)
Read data into aGraph
from output generated by any of theGraphSONWriter
writeVertex
orwriteVertices
methods or byGryoWriter.writeGraph(OutputStream, Graph)
.void
LegacyGraphSONReader. readGraph(InputStream inputStream, Graph graphToWriteTo)
void
GraphSONWriter. writeGraph(OutputStream outputStream, Graph g)
Writes aGraph
to stream in an adjacency list format where vertices are written with edges from both directions. -
Uses of Graph in org.apache.tinkerpop.gremlin.structure.io.gryo
Methods in org.apache.tinkerpop.gremlin.structure.io.gryo with parameters of type Graph Modifier and Type Method Description Io.Builder<GryoIo>
GryoIo.Builder. graph(Graph g)
void
GryoReader. readGraph(InputStream inputStream, Graph graphToWriteTo)
Read data into aGraph
from output generated by any of theGryoWriter
writeVertex
orwriteVertices
methods or byGryoWriter.writeGraph(OutputStream, Graph)
.void
GryoWriter. writeGraph(OutputStream outputStream, Graph g)
Write the entire graph to a stream. -
Uses of Graph in org.apache.tinkerpop.gremlin.structure.util
Methods in org.apache.tinkerpop.gremlin.structure.util with type parameters of type Graph Modifier and Type Method Description <G extends Graph>
GAbstractTransaction. createThreadedTx()
Creates a transaction that can be executed across multiple threads.Methods in org.apache.tinkerpop.gremlin.structure.util that return Graph Modifier and Type Method Description static Graph
GraphFactory. open(String configurationFile)
Open a graph.static Graph
GraphFactory. open(Map configuration)
Open a graph.static Graph
GraphFactory. open(org.apache.commons.configuration2.Configuration configuration)
Open a graph.Methods in org.apache.tinkerpop.gremlin.structure.util with parameters of type Graph Modifier and Type Method Description static IllegalStateException
Attachable.Exceptions. canNotGetAttachableFromHostGraph(Attachable<?> attachable, Graph hostGraph)
static Edge
Attachable.Method. createEdge(Attachable<Edge> attachableEdge, Graph hostGraph)
static Property
Attachable.Method. createProperty(Attachable<Property> attachableProperty, Graph hostGraph)
static Vertex
Attachable.Method. createVertex(Attachable<Vertex> attachableVertex, Graph hostGraph)
static VertexProperty
Attachable.Method. createVertexProperty(Attachable<VertexProperty> attachableVertexProperty, Graph hostGraph)
static Optional<Edge>
Attachable.Method. getEdge(Attachable<Edge> attachableEdge, Graph hostGraph)
static Optional<Property>
Attachable.Method. getProperty(Attachable<Property> attachableProperty, Graph hostGraph)
static Optional<Vertex>
Attachable.Method. getVertex(Attachable<Vertex> attachableVertex, Graph hostGraph)
static Optional<VertexProperty>
Attachable.Method. getVertexProperty(Attachable<VertexProperty> attachableVertexProperty, Graph hostGraph)
static String
StringFactory. graphString(Graph graph, String internalString)
Construct the representation for aGraph
.Constructors in org.apache.tinkerpop.gremlin.structure.util with parameters of type Graph Constructor Description AbstractThreadedTransaction(Graph g)
AbstractThreadLocalTransaction(Graph g)
AbstractTransaction(Graph graph)
-
Uses of Graph in org.apache.tinkerpop.gremlin.structure.util.detached
Methods in org.apache.tinkerpop.gremlin.structure.util.detached that return Graph Modifier and Type Method Description Graph
DetachedElement. graph()
-
Uses of Graph in org.apache.tinkerpop.gremlin.structure.util.empty
Classes in org.apache.tinkerpop.gremlin.structure.util.empty that implement Graph Modifier and Type Class Description class
EmptyGraph
Methods in org.apache.tinkerpop.gremlin.structure.util.empty that return Graph Modifier and Type Method Description Graph
EmptyVertexProperty. graph()
static Graph
EmptyGraph. instance()
static Graph
EmptyGraph.EmptyGraphFactory. open(org.apache.commons.configuration2.Configuration conf)
-
Uses of Graph in org.apache.tinkerpop.gremlin.structure.util.keyed
Methods in org.apache.tinkerpop.gremlin.structure.util.keyed that return Graph Modifier and Type Method Description Graph
KeyedVertexProperty. graph()
-
Uses of Graph in org.apache.tinkerpop.gremlin.structure.util.reference
Methods in org.apache.tinkerpop.gremlin.structure.util.reference that return Graph Modifier and Type Method Description Graph
ReferenceElement. graph()
-
Uses of Graph in org.apache.tinkerpop.gremlin.structure.util.star
Classes in org.apache.tinkerpop.gremlin.structure.util.star that implement Graph Modifier and Type Class Description class
StarGraph
AStarGraph
is a form ofAttachable
(though theGraph
implementation does not implement that interface itself).Methods in org.apache.tinkerpop.gremlin.structure.util.star that return Graph Modifier and Type Method Description Graph
StarGraph.StarAdjacentVertex. graph()
Graph
StarGraph.StarElement. graph()
-
Uses of Graph in org.apache.tinkerpop.gremlin.tinkergraph.process.computer
Methods in org.apache.tinkerpop.gremlin.tinkergraph.process.computer that return Graph Modifier and Type Method Description Graph
TinkerGraphComputerView. processResultGraphPersist(GraphComputer.ResultGraph resultGraph, GraphComputer.Persist persist)
-
Uses of Graph in org.apache.tinkerpop.gremlin.tinkergraph.structure
Classes in org.apache.tinkerpop.gremlin.tinkergraph.structure that implement Graph Modifier and Type Class Description class
AbstractTinkerGraph
Base class forTinkerGraph
andTinkerTransactionGraph
.class
TinkerGraph
An in-memory (with optional persistence on calls toAbstractTinkerGraph.close()
), reference implementation of the property graph interfaces provided by TinkerPop.class
TinkerTransactionGraph
An in-memory (with optional persistence on calls toAbstractTinkerGraph.close()
), reference implementation of the property graph interfaces with transaction support provided by TinkerPop.Methods in org.apache.tinkerpop.gremlin.tinkergraph.structure that return Graph Modifier and Type Method Description Graph
TinkerEdge. graph()
Graph
TinkerVertex. graph()
-