public abstract class StaticVertexProgram<M> extends Object implements VertexProgram<M>
VertexProgram.Builder, VertexProgram.Features
VERTEX_PROGRAM
Constructor and Description |
---|
StaticVertexProgram() |
Modifier and Type | Method and Description |
---|---|
StaticVertexProgram<M> |
clone()
When multiple workers on a single machine need VertexProgram instances, it is possible to use clone.
|
void |
storeState(Configuration configuration)
When it is necessary to store the state of the VertexProgram, this method is called.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createVertexProgram, execute, getFeatures, getMapReducers, getMemoryComputeKeys, getMessageCombiner, getMessageScopes, getPreferredPersist, getPreferredResultGraph, getTraverserRequirements, getVertexComputeKeys, loadState, setup, terminate, workerIterationEnd, workerIterationStart
public StaticVertexProgram<M> clone()
VertexProgram
VertexProgram.storeState(Configuration)
and VertexProgram.loadState(org.apache.tinkerpop.gremlin.structure.Graph, Configuration)
model.
The default implementation simply returns the object as it assumes that the VertexProgram instance is a stateless singleton.clone
in interface VertexProgram<M>
clone
in class Object
public void storeState(Configuration configuration)
VertexProgram
storeState
in interface VertexProgram<M>
configuration
- the configuration to store the state of the VertexProgram in.Copyright © 2013–2020 Apache Software Foundation. All rights reserved.