Tabnine Logo
VertexProgram.getMessageCombiner
Code IndexAdd Tabnine to your IDE (free)

How to use
getMessageCombiner
method
in
org.apache.tinkerpop.gremlin.process.computer.VertexProgram

Best Java code snippets using org.apache.tinkerpop.gremlin.process.computer.VertexProgram.getMessageCombiner (Showing top 9 results out of 315)

origin: thinkaurelius/titan

public static<M> MessageCombiner<M> getMessageCombiner(VertexProgram<M> program) {
  return program.getMessageCombiner().orElse(DEFAULT_COMBINER);
}
origin: JanusGraph/janusgraph

public static<M> MessageCombiner<M> getMessageCombiner(VertexProgram<M> program) {
  return program.getMessageCombiner().orElse(DEFAULT_COMBINER);
}
origin: apache/tinkerpop

vertexProgram.execute(
    ComputerGraph.vertexProgram(vertex, vertexProgram),
    new TinkerMessenger<>(vertex, this.messageBoard, vertexProgram.getMessageCombiner()),
    workerMemory);
origin: com.thinkaurelius.titan/titan-core

public static<M> MessageCombiner<M> getMessageCombiner(VertexProgram<M> program) {
  return program.getMessageCombiner().orElse(DEFAULT_COMBINER);
}
origin: apache/tinkerpop

        IteratorUtils.of(new Tuple2<>(tuple._1(), tuple._2().getView())),      // emit the view payload
        IteratorUtils.map(tuple._2().getOutgoingMessages().iterator(), message -> new Tuple2<>(message._1(), new MessagePayload<>(message._2()))));
final MessageCombiner<M> messageCombiner = VertexProgram.<VertexProgram<M>>createVertexProgram(HadoopGraph.open(vertexProgramConfiguration), vertexProgramConfiguration).getMessageCombiner().orElse(null);
final Function2<Payload, Payload, Payload> reducerFunction = (a, b) -> {      // reduce the view and outgoing messages into a single payload object representing the new view and incoming messages for a vertex
  if (a instanceof ViewIncomingPayload) {
origin: org.apache.tinkerpop/tinkergraph-gremlin

vertexProgram.execute(
    ComputerGraph.vertexProgram(vertex, vertexProgram),
    new TinkerMessenger<>(vertex, this.messageBoard, vertexProgram.getMessageCombiner()),
    workerMemory);
origin: io.shiftleft/tinkergraph-gremlin

vertexProgram.execute(
    ComputerGraph.vertexProgram(vertex, vertexProgram),
    new TinkerMessenger<>(vertex, this.messageBoard, vertexProgram.getMessageCombiner()),
    workerMemory);
origin: ai.grakn/grakn-kb

        IteratorUtils.of(new Tuple2<>(tuple._1(), tuple._2().getView())),      // emit the view payload
        IteratorUtils.map(tuple._2().getOutgoingMessages().iterator(), message -> new Tuple2<>(message._1(), new MessagePayload<>(message._2()))));
final MessageCombiner<M> messageCombiner = VertexProgram.<VertexProgram<M>>createVertexProgram(HadoopGraph.open(vertexProgramConfiguration), vertexProgramConfiguration).getMessageCombiner().orElse(null);
final Function2<Payload, Payload, Payload> reducerFunction = (a, b) -> {      // reduce the view and outgoing messages into a single payload object representing the new view and incoming messages for a vertex
  if (a instanceof ViewIncomingPayload) {
origin: org.apache.tinkerpop/spark-gremlin

        IteratorUtils.of(new Tuple2<>(tuple._1(), tuple._2().getView())),      // emit the view payload
        IteratorUtils.map(tuple._2().getOutgoingMessages().iterator(), message -> new Tuple2<>(message._1(), new MessagePayload<>(message._2()))));
final MessageCombiner<M> messageCombiner = VertexProgram.<VertexProgram<M>>createVertexProgram(HadoopGraph.open(vertexProgramConfiguration), vertexProgramConfiguration).getMessageCombiner().orElse(null);
final Function2<Payload, Payload, Payload> reducerFunction = (a, b) -> {      // reduce the view and outgoing messages into a single payload object representing the new view and incoming messages for a vertex
  if (a instanceof ViewIncomingPayload) {
org.apache.tinkerpop.gremlin.process.computerVertexProgramgetMessageCombiner

Javadoc

Combine the messages in route to a particular vertex. Useful to reduce the amount of data transmitted over the wire. For example, instead of sending two objects that will ultimately be merged at the vertex destination, merge/combine into one and send that object. If no message combiner is provider, then no messages will be combined. Furthermore, it is not guaranteed the all messages in route to the vertex will be combined and thus, combiner-state should not be used. The result of the vertex program algorithm should be the same regardless of whether message combining is executed or not.

Popular methods of VertexProgram

  • getMemoryComputeKeys
    The Memory keys that will be used during the computation. These are the only keys that can be read o
  • workerIterationEnd
    This method is called at the end of each iteration of each "computational chunk." The set of vertice
  • workerIterationStart
    This method is called at the start of each iteration of each "computational chunk." The set of verti
  • createVertexProgram
    A helper method to construct a VertexProgram given the content of the supplied configuration. The cl
  • execute
    This method denotes the main body of the computation and is executed on each vertex in the graph. Th
  • getVertexComputeKeys
    The org.apache.tinkerpop.gremlin.structure.Element properties that will be mutated during the comput
  • setup
    The method is called at the beginning of the computation. The method is global to the GraphComputer
  • terminate
    The method is called at the end of each iteration to determine if the computation is complete. The m
  • getMapReducers
    The set of MapReduce jobs that are associated with the VertexProgram. This is not necessarily the ex
  • storeState
    When it is necessary to store the state of the VertexProgram, this method is called. This is typical
  • clone
    When multiple workers on a single machine need VertexProgram instances, it is possible to use clone.
  • getElementComputeKeys
  • clone,
  • getElementComputeKeys,
  • getMessageScopes,
  • loadState,
  • getFeatures,
  • getPreferredPersist,
  • getPreferredResultGraph,
  • getTraverserRequirements

Popular in Java

  • Running tasks concurrently on multiple threads
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • getSharedPreferences (Context)
  • Menu (java.awt)
  • Permission (java.security)
    Legacy security code; do not use.
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • JFrame (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • Runner (org.openjdk.jmh.runner)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now