public class CountVertexProgram extends GraknVertexProgram
| Modifier and Type | Field and Description |
|---|---|
static String |
COUNT |
analyticsElements| 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 |
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) |
clone, execute, getPreferredPersist, getPreferredResultGraph, storeStateloadState, toStringpublic 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 GraknVertexProgrampublic void setup(org.apache.tinkerpop.gremlin.process.computer.Memory memory)
setup in interface org.apache.tinkerpop.gremlin.process.computer.VertexProgramsetup in class GraknVertexProgrampublic 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)
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 © 2016 Grakn Labs Ltd. All rights reserved.