public class CountVertexProgram extends MindmapsVertexProgram
| 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 |
COUNT |
| Constructor and Description |
|---|
CountVertexProgram() |
CountVertexProgram(Set<String> types) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getMemoryComputeKeys() |
Set<org.apache.tinkerpop.gremlin.process.computer.MessageScope> |
getMessageScopes(org.apache.tinkerpop.gremlin.process.computer.Memory memory) |
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 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) |
String |
toString() |
clone, execute, getPreferredPersist, getPreferredResultGraph, storeStatepublic static final String COUNT
public Set<org.apache.tinkerpop.gremlin.process.computer.MessageScope> getMessageScopes(org.apache.tinkerpop.gremlin.process.computer.Memory memory)
getMessageScopes in interface org.apache.tinkerpop.gremlin.process.computer.VertexProgramgetMessageScopes in class MindmapsVertexProgrampublic void setup(org.apache.tinkerpop.gremlin.process.computer.Memory memory)
setup in interface org.apache.tinkerpop.gremlin.process.computer.VertexProgramsetup in class MindmapsVertexProgrampublic void safeExecute(org.apache.tinkerpop.gremlin.structure.Vertex vertex,
org.apache.tinkerpop.gremlin.process.computer.Messenger messenger,
org.apache.tinkerpop.gremlin.process.computer.Memory memory)
MindmapsVertexProgramvertex - 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. All rights reserved.