Class Computer
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.process.computer.Computer
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Function<Graph,GraphComputer>
public final class Computer extends Object implements Function<Graph,GraphComputer>, Serializable, Cloneable
- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphComputer
apply(Graph graph)
Computer
clone()
static Computer
compute()
static Computer
compute(Class<? extends GraphComputer> graphComputerClass)
Computer
configure(String key, Object value)
Computer
configure(Map<String,Object> configurations)
Computer
edges(Traversal<Vertex,Edge> edgeFilter)
Map<String,Object>
getConfiguration()
Traversal<Vertex,Edge>
getEdges()
Class<? extends GraphComputer>
getGraphComputerClass()
GraphComputer.Persist
getPersist()
GraphComputer.ResultGraph
getResultGraph()
Traversal<Vertex,Vertex>
getVertices()
int
getWorkers()
Computer
graphComputer(Class<? extends GraphComputer> graphComputerClass)
Computer
persist(GraphComputer.Persist persist)
Computer
result(GraphComputer.ResultGraph resultGraph)
String
toString()
Computer
vertices(Traversal<Vertex,Vertex> vertexFilter)
Computer
workers(int workers)
-
-
-
Method Detail
-
compute
public static Computer compute()
-
compute
public static Computer compute(Class<? extends GraphComputer> graphComputerClass)
-
graphComputer
public Computer graphComputer(Class<? extends GraphComputer> graphComputerClass)
-
workers
public Computer workers(int workers)
-
persist
public Computer persist(GraphComputer.Persist persist)
-
result
public Computer result(GraphComputer.ResultGraph resultGraph)
-
apply
public GraphComputer apply(Graph graph)
- Specified by:
apply
in interfaceFunction<Graph,GraphComputer>
-
getGraphComputerClass
public Class<? extends GraphComputer> getGraphComputerClass()
-
getPersist
public GraphComputer.Persist getPersist()
-
getResultGraph
public GraphComputer.ResultGraph getResultGraph()
-
getWorkers
public int getWorkers()
-
-