public class ConnectedComponentVertexProgram extends GraknVertexProgram<String>
| Modifier and Type | Field and Description |
|---|---|
static String |
CLUSTER_LABEL |
| Constructor and Description |
|---|
ConnectedComponentVertexProgram() |
ConnectedComponentVertexProgram(Set<LabelId> selectedTypes,
String randomId) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getElementComputeKeys() |
Set<String> |
getMemoryComputeKeys() |
void |
loadState(org.apache.tinkerpop.gremlin.structure.Graph graph,
org.apache.commons.configuration.Configuration configuration)
Load
persistentProperties and any hard coded fields from an apache config object for use by the
spark executor. |
void |
safeExecute(org.apache.tinkerpop.gremlin.structure.Vertex vertex,
org.apache.tinkerpop.gremlin.process.computer.Messenger<String> messenger,
org.apache.tinkerpop.gremlin.process.computer.Memory memory)
An alternative to the execute method when ghost vertices are an issue.
|
void |
setup(org.apache.tinkerpop.gremlin.process.computer.Memory memory) |
boolean |
terminate(org.apache.tinkerpop.gremlin.process.computer.Memory memory) |
clone, execute, getMessageScopes, getPreferredPersist, getPreferredResultGraph, storeStatetoStringpublic static final String CLUSTER_LABEL
public void loadState(org.apache.tinkerpop.gremlin.structure.Graph graph,
org.apache.commons.configuration.Configuration configuration)
CommonOLAPpersistentProperties and any hard coded fields from an apache config object for use by the
spark executor.loadState in interface org.apache.tinkerpop.gremlin.process.computer.VertexProgram<String>loadState in class CommonOLAPgraph - the tinker graphconfiguration - the apache config object containing the valuespublic void setup(org.apache.tinkerpop.gremlin.process.computer.Memory memory)
setup in interface org.apache.tinkerpop.gremlin.process.computer.VertexProgram<String>setup in class GraknVertexProgram<String>public void safeExecute(org.apache.tinkerpop.gremlin.structure.Vertex vertex,
org.apache.tinkerpop.gremlin.process.computer.Messenger<String> messenger,
org.apache.tinkerpop.gremlin.process.computer.Memory memory)
GraknVertexProgramvertex - a vertex that may be a ghostmessenger - Tinker message passing objectmemory - Tinker memory objectpublic boolean terminate(org.apache.tinkerpop.gremlin.process.computer.Memory memory)
Copyright © 2017 Grakn Labs Ltd. All rights reserved.