Class MessageScope.Local<M>
java.lang.Object
org.apache.tinkerpop.gremlin.process.computer.MessageScope
org.apache.tinkerpop.gremlin.process.computer.MessageScope.Local<M>
- Type Parameters:
M- TheVertexProgrammessage class
- Enclosing class:
- MessageScope
A Local message is directed to an adjacent (or "memory adjacent") vertex.
The adjacent vertex set is defined by the provided
Traversal that dictates how to go from the sending vertex to the receiving vertex.
This is the preferred message scope as it can potentially be optimized by the underlying Messenger implementation.
The preferred optimization is to not distribute a message object to all adjacent vertices.
Instead, allow the recipients to read a single message object stored at the "sending" vertex.
This is possible via `Traversal.reverse()`. This optimizations greatly reduces the amount of data created in the computation.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA helper class that can be used to generate the reverse traversal of the traversal within aMessageScope.Local.Nested classes/interfaces inherited from class org.apache.tinkerpop.gremlin.process.computer.MessageScope
MessageScope.Global, MessageScope.Local<M> -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanBiFunction<M,Edge, M> inthashCode()static <M> MessageScope.Local<M>static <M> MessageScope.Local<M>
-
Field Details
-
incidentTraversal
-
edgeFunction
-
-
Method Details
-
of
public static <M> MessageScope.Local<M> of(Supplier<? extends Traversal<Vertex, Edge>> incidentTraversal) -
of
public static <M> MessageScope.Local<M> of(Supplier<? extends Traversal<Vertex, Edge>> incidentTraversal, BiFunction<M, Edge, M> edgeFunction) -
getEdgeFunction
-
getIncidentTraversal
-
hashCode
public int hashCode() -
equals
-