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

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

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

origin: thinkaurelius/titan

this.mapReduces.addAll(this.vertexProgram.getMapReducers());
origin: JanusGraph/janusgraph

this.mapReduces.addAll(this.vertexProgram.getMapReducers());
origin: apache/tinkerpop

protected void validateStatePriorToExecution() {
  // a graph computer can only be executed one time
  if (this.executed)
    throw Exceptions.computerHasAlreadyBeenSubmittedAVertexProgram();
  else
    this.executed = true;
  // it is not possible execute a computer if it has no vertex program nor mapreducers
  if (null == this.vertexProgram && this.mapReducers.isEmpty())
    throw GraphComputer.Exceptions.computerHasNoVertexProgramNorMapReducers();
  // it is possible to run mapreducers without a vertex program
  if (null != this.vertexProgram) {
    GraphComputerHelper.validateProgramOnComputer(this, vertexProgram);
    this.mapReducers.addAll(this.vertexProgram.getMapReducers());
  }
  // if the user didn't set desired persistence/resultgraph, then get from vertex program or else, no persistence
  this.persist = GraphComputerHelper.getPersistState(Optional.ofNullable(this.vertexProgram), Optional.ofNullable(this.persist));
  this.resultGraph = GraphComputerHelper.getResultGraphState(Optional.ofNullable(this.vertexProgram), Optional.ofNullable(this.resultGraph));
  // determine persistence and result graph options
  if (!this.features().supportsResultGraphPersistCombination(this.resultGraph, this.persist))
    throw GraphComputer.Exceptions.resultGraphPersistCombinationNotSupported(this.resultGraph, this.persist);
  // if too many workers are requested, throw appropriate exception
  if (this.workers > this.features().getMaxWorkers())
    throw GraphComputer.Exceptions.computerRequiresMoreWorkersThanSupported(this.workers, this.features().getMaxWorkers());
}
origin: apache/tinkerpop

this.mapReducers.addAll(this.vertexProgram.getMapReducers());
origin: org.apache.tinkerpop/hadoop-gremlin

protected void validateStatePriorToExecution() {
  // a graph computer can only be executed one time
  if (this.executed)
    throw Exceptions.computerHasAlreadyBeenSubmittedAVertexProgram();
  else
    this.executed = true;
  // it is not possible execute a computer if it has no vertex program nor mapreducers
  if (null == this.vertexProgram && this.mapReducers.isEmpty())
    throw GraphComputer.Exceptions.computerHasNoVertexProgramNorMapReducers();
  // it is possible to run mapreducers without a vertex program
  if (null != this.vertexProgram) {
    GraphComputerHelper.validateProgramOnComputer(this, vertexProgram);
    this.mapReducers.addAll(this.vertexProgram.getMapReducers());
  }
  // if the user didn't set desired persistence/resultgraph, then get from vertex program or else, no persistence
  this.persist = GraphComputerHelper.getPersistState(Optional.ofNullable(this.vertexProgram), Optional.ofNullable(this.persist));
  this.resultGraph = GraphComputerHelper.getResultGraphState(Optional.ofNullable(this.vertexProgram), Optional.ofNullable(this.resultGraph));
  // determine persistence and result graph options
  if (!this.features().supportsResultGraphPersistCombination(this.resultGraph, this.persist))
    throw GraphComputer.Exceptions.resultGraphPersistCombinationNotSupported(this.resultGraph, this.persist);
  // if too many workers are requested, throw appropriate exception
  if (this.workers > this.features().getMaxWorkers())
    throw GraphComputer.Exceptions.computerRequiresMoreWorkersThanSupported(this.workers, this.features().getMaxWorkers());
}
origin: com.thinkaurelius.titan/titan-core

this.mapReduces.addAll(this.vertexProgram.getMapReducers());
origin: io.shiftleft/tinkergraph-gremlin

this.mapReducers.addAll(this.vertexProgram.getMapReducers());
origin: org.apache.tinkerpop/tinkergraph-gremlin

this.mapReducers.addAll(this.vertexProgram.getMapReducers());
org.apache.tinkerpop.gremlin.process.computerVertexProgramgetMapReducers

Javadoc

The set of MapReduce jobs that are associated with the VertexProgram. This is not necessarily the exhaustive list over the life of the GraphComputer. If MapReduce jobs are declared by GraphComputer.mapReduce(), they are not contained in this set. The default is an empty set.

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
  • 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
  • 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

  • Reactive rest calls using spring rest template
  • setContentView (Activity)
  • findViewById (Activity)
  • getExternalFilesDir (Context)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top Sublime Text plugins
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