public class CountVertexProgram extends GraknVertexProgram<Long>
| Modifier and Type | Field and Description |
|---|---|
static String |
EDGE_COUNT |
| Constructor and Description |
|---|
CountVertexProgram() |
| Modifier and Type | Method and Description |
|---|---|
Set<org.apache.tinkerpop.gremlin.process.computer.MessageScope> |
getMessageScopes(org.apache.tinkerpop.gremlin.process.computer.Memory memory) |
Set<org.apache.tinkerpop.gremlin.process.computer.VertexComputeKey> |
getVertexComputeKeys() |
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) |
clone, execute, getPreferredPersist, getPreferredResultGraph, setup, storeStateloadState, toStringpublic static final String EDGE_COUNT
public Set<org.apache.tinkerpop.gremlin.process.computer.VertexComputeKey> getVertexComputeKeys()
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.VertexProgram<Long>getMessageScopes in class GraknVertexProgram<Long>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)
Copyright © 2017 Grakn Labs Ltd. All rights reserved.