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

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

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

origin: thinkaurelius/titan

@Override
public void workerIterationEnd(ScanMetrics metrics) {
  vertexProgram.workerIterationEnd(memory.asImmutable());
}
origin: JanusGraph/janusgraph

@Override
public void workerIterationEnd(ScanMetrics metrics) {
  vertexProgram.workerIterationEnd(memory.asImmutable());
}
origin: apache/tinkerpop

  public synchronized void workerIterationEnd(final Memory memory) {
    for (final VertexProgram<?> vertexProgram : this.pool) {
      vertexProgram.workerIterationEnd(memory);
    }
  }
}
origin: org.apache.tinkerpop/gremlin-core

  public synchronized void workerIterationEnd(final Memory memory) {
    for (final VertexProgram<?> vertexProgram : this.pool) {
      vertexProgram.workerIterationEnd(memory);
    }
  }
}
origin: apache/tinkerpop

        workerMemory);
  vertexProgram.workerIterationEnd(workerMemory.asImmutable());
  workerMemory.complete();
});
origin: apache/tinkerpop

final List<Tuple2<Object, M>> outgoingMessages = messenger.getOutgoingMessages(); // get the outgoing messages being sent by this vertex
if (!partitionIterator.hasNext())
  workerVertexProgram.workerIterationEnd(memory.asImmutable()); // if no more vertices in the partition, end the worker's iteration
return (nextView.isEmpty() && outgoingMessages.isEmpty()) ?
origin: com.thinkaurelius.titan/titan-core

@Override
public void workerIterationEnd(ScanMetrics metrics) {
  vertexProgram.workerIterationEnd(memory.asImmutable());
}
origin: org.apache.tinkerpop/tinkergraph-gremlin

        workerMemory);
  vertexProgram.workerIterationEnd(workerMemory.asImmutable());
  workerMemory.complete();
});
origin: io.shiftleft/tinkergraph-gremlin

        workerMemory);
  vertexProgram.workerIterationEnd(workerMemory.asImmutable());
  workerMemory.complete();
});
origin: ai.grakn/grakn-kb

final List<Tuple2<Object, M>> outgoingMessages = messenger.getOutgoingMessages(); // get the outgoing messages being sent by this vertex
if (!partitionIterator.hasNext()) {
  workerVertexProgram.workerIterationEnd(memory.asImmutable()); // if no more vertices in the partition, end the worker's iteration}
}return (nextView.isEmpty() && outgoingMessages.isEmpty()) ?
origin: org.apache.tinkerpop/spark-gremlin

final List<Tuple2<Object, M>> outgoingMessages = messenger.getOutgoingMessages(); // get the outgoing messages being sent by this vertex
if (!partitionIterator.hasNext())
  workerVertexProgram.workerIterationEnd(memory.asImmutable()); // if no more vertices in the partition, end the worker's iteration
return (nextView.isEmpty() && outgoingMessages.isEmpty()) ?
org.apache.tinkerpop.gremlin.process.computerVertexProgramworkerIterationEnd

Javadoc

This method is called at the end of each iteration of each "computational chunk." The set of vertices in the graph are typically not processed with full parallelism. The vertex set is split into subsets and a worker is assigned to call the VertexProgram#execute method. The default implementation is a no-op.

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
  • 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
  • getMessageCombiner
    Combine the messages in route to a particular vertex. Useful to reduce the amount of data transmitte
  • 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

  • Finding current android device location
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setContentView (Activity)
  • getSystemService (Context)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JCheckBox (javax.swing)
  • Top plugins for WebStorm
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