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 GraphComputerapply(Graph graph)Computerclone()static Computercompute()static Computercompute(Class<? extends GraphComputer> graphComputerClass)Computerconfigure(String key, Object value)Computerconfigure(Map<String,Object> configurations)Computeredges(Traversal<Vertex,Edge> edgeFilter)Map<String,Object>getConfiguration()Traversal<Vertex,Edge>getEdges()Class<? extends GraphComputer>getGraphComputerClass()GraphComputer.PersistgetPersist()GraphComputer.ResultGraphgetResultGraph()Traversal<Vertex,Vertex>getVertices()intgetWorkers()ComputergraphComputer(Class<? extends GraphComputer> graphComputerClass)Computerpersist(GraphComputer.Persist persist)Computerresult(GraphComputer.ResultGraph resultGraph)StringtoString()Computervertices(Traversal<Vertex,Vertex> vertexFilter)Computerworkers(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:
applyin interfaceFunction<Graph,GraphComputer>
-
getGraphComputerClass
public Class<? extends GraphComputer> getGraphComputerClass()
-
getPersist
public GraphComputer.Persist getPersist()
-
getResultGraph
public GraphComputer.ResultGraph getResultGraph()
-
getWorkers
public int getWorkers()
-
-