public class DegreeStatisticsVertexProgram extends DegreeVertexProgram
DEGREE| Constructor and Description |
|---|
DegreeStatisticsVertexProgram() |
DegreeStatisticsVertexProgram(Set<TypeId> types,
Set<TypeId> ofTypeIDs,
String randomId) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getElementComputeKeys() |
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<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) |
storeStateclone, execute, getPreferredPersist, getPreferredResultGraph, setuptoStringpublic 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<Long>loadState in class DegreeVertexProgramgraph - the tinker graphconfiguration - the apache config object containing the valuespublic Set<String> getElementComputeKeys()
getElementComputeKeys in interface org.apache.tinkerpop.gremlin.process.computer.VertexProgram<Long>getElementComputeKeys in class DegreeVertexProgrampublic 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)
GraknVertexProgramsafeExecute in class DegreeVertexProgramvertex - a vertex that may be a ghostmessenger - Tinker message passing objectmemory - Tinker memory objectpublic 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 DegreeVertexProgrampublic boolean terminate(org.apache.tinkerpop.gremlin.process.computer.Memory memory)
terminate in interface org.apache.tinkerpop.gremlin.process.computer.VertexProgram<Long>terminate in class DegreeVertexProgramCopyright © 2017 Grakn Labs Ltd. All rights reserved.