Modifier and Type | Field and Description |
---|---|
protected Graph |
AbstractGremlinTest.graph |
Modifier and Type | Method and Description |
---|---|
default Graph |
GraphProvider.openTestGraph(Configuration config)
Creates a new
Graph instance from the Configuration object using
GraphFactory . |
default Graph |
GraphProvider.standardTestGraph(Class<?> test,
String testMethodName)
Creates a new
Graph instance using the default
org.apache.commons.configuration.Configuration from GraphProvider.standardGraphConfiguration(Class, String) . |
Modifier and Type | Method and Description |
---|---|
static Consumer<Graph> |
AbstractGremlinTest.assertVertexEdgeCounts(int expectedVertexCount,
int expectedEdgeCount) |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractGremlinTest.afterLoadGraphWith(Graph g) |
protected void |
AbstractGremlinTest.beforeLoadGraphWith(Graph g) |
void |
GraphProvider.clear(Graph graph,
Configuration configuration)
Clears a
Graph of all data and settings. |
Object |
AbstractGremlinTest.convertToEdgeId(Graph graph,
String outVertexName,
String edgeLabel,
String inVertexName) |
Vertex |
AbstractGremlinTest.convertToVertex(Graph graph,
String vertexName) |
Object |
AbstractGremlinTest.convertToVertexId(Graph g,
String vertexName)
Looks up the identifier as generated by the current source graph being tested.
|
void |
AbstractGraphProvider.loadGraphData(Graph graph,
LoadGraphWith loadGraphWith,
Class testClass,
String testName) |
void |
GraphProvider.loadGraphData(Graph graph,
LoadGraphWith loadGraphWith,
Class testClass,
String testName)
Tests are annotated with a
LoadGraphWith annotation. |
protected void |
AbstractGraphProvider.readIntoGraph(Graph g,
String path) |
default GraphTraversalSource |
GraphProvider.traversal(Graph graph)
Create a
GraphTraversalSource from a Graph instance. |
default GraphTraversalSource |
GraphProvider.traversal(Graph graph,
TraversalStrategy... strategies)
Create a
GraphTraversalSource from a Graph instance. |
void |
AbstractGremlinTest.tryCommit(Graph g)
Utility method that commits if the graph supports transactions.
|
void |
AbstractGremlinTest.tryCommit(Graph g,
Consumer<Graph> assertFunction)
Utility method that commits if the graph supports transactions and executes an assertion function before and
after the commit.
|
void |
AbstractGremlinTest.tryRandomCommit(Graph g) |
void |
AbstractGremlinTest.tryRollback(Graph g)
Utility method that rollsback if the graph supports transactions.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractGremlinTest.tryCommit(Graph g,
Consumer<Graph> assertFunction)
Utility method that commits if the graph supports transactions and executes an assertion function before and
after the commit.
|
static void |
AbstractGremlinSuite.validateOptInAndOutAnnotationsOnGraph(Class<? extends Graph> klass) |
Modifier and Type | Field and Description |
---|---|
protected Graph |
AbstractGenerator.g |
Modifier and Type | Method and 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) |
Modifier and Type | Method and Description |
---|---|
default void |
MessageSerializer.configure(Map<String,Object> config,
Map<String,Graph> graphs)
Configure the serializer with mapper settings as required.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractJsonMessageSerializerV1d0.configure(Map<String,Object> config,
Map<String,Graph> graphs) |
void |
GryoMessageSerializerV1d0.configure(Map<String,Object> config,
Map<String,Graph> graphs) |
Modifier and Type | Class and Description |
---|---|
class |
HadoopGraph |
Modifier and Type | Method and Description |
---|---|
Graph |
HadoopElement.graph() |
Modifier and Type | Method and Description |
---|---|
Graph |
ComputerResult.graph()
|
Modifier and Type | Method and Description |
---|---|
TraversalVertexProgram.Builder |
TraversalVertexProgram.Builder.traversal(Class<? extends Graph> graphClass,
TraversalSource.Builder builder,
String scriptEngine,
String traversalScript) |
Constructor and Description |
---|
TraversalScriptSupplier(Class<? extends Graph> graphClass,
TraversalSource.Builder traversalContextBuilder,
String scriptEngineName,
String traversalScript) |
Modifier and Type | Class and Description |
---|---|
class |
ComputerGraph |
Modifier and Type | Field and Description |
---|---|
protected Graph |
DefaultComputerResult.graph |
Modifier and Type | Method and Description |
---|---|
Graph |
DefaultComputerResult.graph() |
Constructor and Description |
---|
ComputerGraph(Graph graph,
Set<String> elementComputeKeys) |
DefaultComputerResult(Graph graph,
Memory memory) |
Modifier and Type | Method and Description |
---|---|
Optional<Graph> |
Traversal.Admin.getGraph() |
Optional<Graph> |
TraversalSource.getGraph() |
Modifier and Type | Method and Description |
---|---|
default Traverser.Admin<T> |
Traverser.Admin.attach(Graph graph)
Traversers can not attach to graphs and thus, an
UnsupportedOperationException is thrown. |
TraversalEngine |
TraversalEngine.Builder.create(Graph graph) |
C |
TraversalSource.Builder.create(Graph graph) |
Modifier and Type | Method and Description |
---|---|
static TraversalStrategies |
TraversalStrategies.GlobalCache.getStrategies(Class<? extends Graph> graphClass) |
static void |
TraversalStrategies.GlobalCache.registerStrategies(Class<? extends Graph> graphClass,
TraversalStrategies traversalStrategies) |
Modifier and Type | Method and Description |
---|---|
Optional<Graph> |
GraphTraversalSource.getGraph() |
Modifier and Type | Method and Description |
---|---|
GraphTraversalSource |
GraphTraversalSource.Builder.create(Graph graph) |
Constructor and Description |
---|
DefaultGraphTraversal(Graph graph) |
Modifier and Type | Method and Description |
---|---|
ComputerTraversalEngine |
ComputerTraversalEngine.Builder.create(Graph graph) |
TraversalEngine |
StandardTraversalEngine.Builder.create(Graph graph) |
Modifier and Type | Method and Description |
---|---|
Optional<Graph> |
AbstractLambdaTraversal.getGraph() |
Optional<Graph> |
HasNextTraversal.getGraph() |
Modifier and Type | Method and 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) |
Modifier and Type | Method and 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) |
Constructor and Description |
---|
ConsoleMutationListener(Graph graph) |
Modifier and Type | Field and Description |
---|---|
protected Graph |
DefaultTraversal.graph |
Modifier and Type | Method and Description |
---|---|
Optional<Graph> |
DefaultTraversal.getGraph() |
Optional<Graph> |
EmptyTraversal.getGraph() |
Constructor and Description |
---|
DefaultTraversal(Graph graph) |
Modifier and Type | Method and Description |
---|---|
Map<String,Graph> |
Graphs.getGraphs()
Get a list of the
Graph instances and their binding names as defined in the Gremlin Server
configuration file. |
Modifier and Type | Method and Description |
---|---|
<G extends Graph> |
Transaction.create()
Creates a transaction that can be executed across multiple threads.
|
static <G extends Graph> |
Graph.empty(Class<G> graphClass) |
Modifier and Type | Method and Description |
---|---|
Graph |
Element.graph()
Get the graph that this element is within.
|
default Graph |
VertexProperty.graph()
Get the graph that this element is within.
|
Modifier and Type | Method and Description |
---|---|
protected void |
GraphReadPerformanceTest.ReadFromGraph.afterLoadGraphWith(Graph g) |
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) |
Modifier and Type | Method and Description |
---|---|
R |
Transaction.Workload.attempt(BiFunction<Graph,Function<Graph,R>,R> retryStrategy)
Try to execute a
Transaction.Workload with a mapper retry strategy. |
R |
Transaction.Workload.attempt(BiFunction<Graph,Function<Graph,R>,R> retryStrategy)
Try to execute a
Transaction.Workload with a mapper retry strategy. |
<R> Transaction.Workload<R> |
Transaction.submit(Function<Graph,R> work)
Submit a unit of work that represents a transaction returning a
Transaction.Workload that can be automatically
retried in the event of failure. |
Constructor and Description |
---|
Workload(Graph g,
Function<Graph,R> work)
Creates a new
Transaction.Workload that will be tried to be executed within a transaction. |
Constructor and Description |
---|
Workload(Graph g,
Function<Graph,R> work)
Creates a new
Transaction.Workload that will be tried to be executed within a transaction. |
Modifier and Type | Method and Description |
---|---|
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 an
InputStream . |
void |
GraphWriter.writeGraph(OutputStream outputStream,
Graph g)
Write the entire graph to a stream.
|
Constructor and Description |
---|
DefaultIo(Graph g) |
Modifier and Type | Method and Description |
---|---|
void |
GraphMLReader.readGraph(InputStream graphInputStream,
Graph graphToWriteTo) |
void |
GraphMLWriter.writeGraph(OutputStream outputStream,
Graph g)
Write the data in a Graph to a GraphML OutputStream.
|
Modifier and Type | Method and Description |
---|---|
void |
GraphSONReader.readGraph(InputStream inputStream,
Graph graphToWriteTo) |
void |
LegacyGraphSONReader.readGraph(InputStream inputStream,
Graph graphToWriteTo) |
void |
GraphSONWriter.writeGraph(OutputStream outputStream,
Graph g) |
Constructor and Description |
---|
GraphSONUtility(Graph g) |
Modifier and Type | Method and Description |
---|---|
void |
GryoReader.readGraph(InputStream inputStream,
Graph graphToWriteTo) |
void |
GryoWriter.writeGraph(OutputStream outputStream,
Graph g) |
Modifier and Type | Method and Description |
---|---|
<G extends Graph> |
AbstractTransaction.create() |
Modifier and Type | Method and Description |
---|---|
static Graph |
GraphFactory.open(Configuration configuration)
Open a graph.
|
Modifier and Type | Method and Description |
---|---|
static Vertex |
ElementHelper.getOrAddVertex(Graph graph,
Object id,
String label)
Check if the vertex, by ID, exists.
|
static String |
StringFactory.graphString(Graph graph,
String internalString)
Construct the representation for a
Graph . |
Modifier and Type | Method and Description |
---|---|
<R> Transaction.Workload<R> |
AbstractTransaction.submit(Function<Graph,R> work) |
Constructor and Description |
---|
AbstractTransaction(Graph g) |
Modifier and Type | Class and Description |
---|---|
class |
BatchGraph<G extends Graph>
BatchGraph is a wrapper that enables batch loading of a large number of edges and vertices by chunking the entire
load into smaller batches and maintaining a sideEffects-efficient vertex cache so that the entire transactional state can
be flushed after each chunk is loaded. |
static class |
BatchGraph.Builder<G extends Graph> |
Modifier and Type | Class and Description |
---|---|
class |
BatchGraph<G extends Graph>
BatchGraph is a wrapper that enables batch loading of a large number of edges and vertices by chunking the entire
load into smaller batches and maintaining a sideEffects-efficient vertex cache so that the entire transactional state can
be flushed after each chunk is loaded. |
Modifier and Type | Method and Description |
---|---|
static <T extends Graph> |
BatchGraph.build(T g) |
Modifier and Type | Method and Description |
---|---|
Graph |
DetachedElement.graph() |
Modifier and Type | Method and Description |
---|---|
static Edge |
DetachedEdge.addTo(Graph graph,
DetachedEdge detachedEdge) |
static Vertex |
DetachedVertex.addTo(Graph graph,
DetachedVertex detachedVertex) |
T |
Attachable.attach(Graph hostGraph) |
Edge |
DetachedEdge.attach(Graph hostGraph) |
Path |
DetachedPath.attach(Graph hostGraph) |
Property<V> |
DetachedProperty.attach(Graph hostGraph) |
Vertex |
DetachedVertex.attach(Graph hostGraph) |
VertexProperty<V> |
DetachedVertexProperty.attach(Graph hostGraph) |
Modifier and Type | Class and Description |
---|---|
class |
EmptyGraph |
Modifier and Type | Method and Description |
---|---|
Graph |
EmptyVertexProperty.graph() |
static Graph |
EmptyGraph.instance() |
Constructor and Description |
---|
TinkerComputerResult(Graph graph,
Memory memory) |
Modifier and Type | Class and Description |
---|---|
class |
TinkerGraph
An in-sideEffects, reference implementation of the property graph interfaces provided by Gremlin3.
|
Modifier and Type | Method and Description |
---|---|
Graph |
TinkerEdge.graph() |
Graph |
TinkerVertex.graph() |
Modifier and Type | Method and Description |
---|---|
static <S> TinkerFactory.SocialTraversal<S,S> |
TinkerFactory.SocialTraversal.of(Graph graph) |
Constructor and Description |
---|
DefaultSocialTraversal(Graph graph) |
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.