public class DegreeVertexProgram extends GraknVertexProgram<Long>
| Modifier and Type | Field and Description |
|---|---|
static Set<String> |
analyticsElements
The types that are reserved by analytics and are not "seen" by analytics.
|
static String |
DEGREE |
| Constructor and Description |
|---|
DegreeVertexProgram() |
DegreeVertexProgram(Set<String> types) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getElementComputeKeys() |
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<Long> messenger,
org.apache.tinkerpop.gremlin.process.computer.Memory memory)
An alternative to the execute method when ghost vertices are an issue.
|
boolean |
terminate(org.apache.tinkerpop.gremlin.process.computer.Memory memory) |
String |
toString() |
clone, execute, getMessageScopes, getPreferredPersist, getPreferredResultGraph, setup, storeStatepublic static final String DEGREE
public void safeExecute(org.apache.tinkerpop.gremlin.structure.Vertex vertex,
org.apache.tinkerpop.gremlin.process.computer.Messenger<Long> 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 loadState(org.apache.tinkerpop.gremlin.structure.Graph graph,
org.apache.commons.configuration.Configuration configuration)
persistentProperties and any hard coded fields from an apache config object for use by the
spark executor.graph - the tinker graphconfiguration - the apache config object containing the valuesCopyright © 2016 Grakn Labs Ltd. All rights reserved.