public class ConnectedComponentVertexProgram extends GraknVertexProgram<String>
| Modifier and Type | Field and Description |
|---|---|
static String |
CLUSTER_LABEL |
analyticsElements| Constructor and Description |
|---|
ConnectedComponentVertexProgram() |
ConnectedComponentVertexProgram(Set<String> selectedTypes) |
ConnectedComponentVertexProgram(Set<String> selectedTypes,
Set<String> withoutHasResource,
String keyspace,
String clusterName) |
ConnectedComponentVertexProgram(Set<String> selectedTypes,
Set<String> withoutHasResource,
String keyspace,
String clusterName,
Set<String> selectedLabels) |
| 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) |
void |
storeState(org.apache.commons.configuration.Configuration configuration)
Store
persistentProperties and any hard coded fields in an apache config object for propagation to
spark executors. |
boolean |
terminate(org.apache.tinkerpop.gremlin.process.computer.Memory memory) |
void |
workerIterationEnd(org.apache.tinkerpop.gremlin.process.computer.Memory memory) |
void |
workerIterationStart(org.apache.tinkerpop.gremlin.process.computer.Memory memory) |
clone, execute, getMessageScopes, getPreferredPersist, getPreferredResultGraphtoStringpublic static final String CLUSTER_LABEL
public ConnectedComponentVertexProgram()
public ConnectedComponentVertexProgram(Set<String> selectedTypes, Set<String> withoutHasResource, String keyspace, String clusterName)
public void storeState(org.apache.commons.configuration.Configuration configuration)
CommonOLAPpersistentProperties and any hard coded fields in an apache config object for propagation to
spark executors.storeState in interface org.apache.tinkerpop.gremlin.process.computer.VertexProgram<String>storeState in class GraknVertexProgram<String>configuration - the apache config object that will be propagatedpublic 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)
public void workerIterationStart(org.apache.tinkerpop.gremlin.process.computer.Memory memory)
public void workerIterationEnd(org.apache.tinkerpop.gremlin.process.computer.Memory memory)
Copyright © 2016 Grakn Labs Ltd. All rights reserved.