public class GraknComputerImpl extends Object implements GraknComputer
GraphComputer Used For Analytics Algorithms
Wraps a Tinkerpop GraphComputer which enables the execution of pregel programs.
These programs are defined either via a MapReduce or a VertexProgram.
A VertexProgram is a computation executed on each vertex in parallel.
Vertices communicate with each other through message passing.
MapReduce processed the vertices in a parallel manner by aggregating values emitted by vertices.
MapReduce can be executed alone or used to collect the results after executing a VertexProgram.
| Constructor and Description |
|---|
GraknComputerImpl(org.apache.tinkerpop.gremlin.structure.Graph graph) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.tinkerpop.gremlin.process.computer.ComputerResult |
compute(org.apache.tinkerpop.gremlin.process.computer.VertexProgram program,
org.apache.tinkerpop.gremlin.process.computer.MapReduce mapReduce,
Set<LabelId> types) |
org.apache.tinkerpop.gremlin.process.computer.ComputerResult |
compute(org.apache.tinkerpop.gremlin.process.computer.VertexProgram program,
org.apache.tinkerpop.gremlin.process.computer.MapReduce mapReduce,
Set<LabelId> types,
Boolean includesRolePlayerEdges) |
protected org.apache.tinkerpop.gremlin.process.computer.GraphComputer |
getGraphComputer() |
void |
killJobs() |
public GraknComputerImpl(org.apache.tinkerpop.gremlin.structure.Graph graph)
public org.apache.tinkerpop.gremlin.process.computer.ComputerResult compute(@Nullable org.apache.tinkerpop.gremlin.process.computer.VertexProgram program, @Nullable org.apache.tinkerpop.gremlin.process.computer.MapReduce mapReduce, @Nullable Set<LabelId> types, Boolean includesRolePlayerEdges)
compute in interface GraknComputerpublic org.apache.tinkerpop.gremlin.process.computer.ComputerResult compute(@Nullable org.apache.tinkerpop.gremlin.process.computer.VertexProgram program, @Nullable org.apache.tinkerpop.gremlin.process.computer.MapReduce mapReduce, @Nullable Set<LabelId> types)
compute in interface GraknComputerpublic void killJobs()
killJobs in interface GraknComputerprotected org.apache.tinkerpop.gremlin.process.computer.GraphComputer getGraphComputer()
Copyright © 2018 Grakn Labs Ltd. All rights reserved.