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

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

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

origin: thinkaurelius/titan

@Override
public VertexProgramScanJob<M> clone() {
  return new VertexProgramScanJob<>(this.idManager, this.memory, this.vertexMemory, this.vertexProgram
      .clone());
}
origin: JanusGraph/janusgraph

@Override
public VertexProgramScanJob<M> clone() {
  return new VertexProgramScanJob<>(this.idManager, this.memory, this.vertexMemory, this.vertexProgram
      .clone());
}
origin: apache/tinkerpop

public VertexProgramPool(final VertexProgram vertexProgram, final int poolSize) {
  this.pool = new LinkedBlockingQueue<>(poolSize);
  while (this.pool.remainingCapacity() > 0) {
    this.pool.add(vertexProgram.clone());
  }
}
origin: org.apache.tinkerpop/gremlin-core

public VertexProgramPool(final VertexProgram vertexProgram, final int poolSize) {
  this.pool = new LinkedBlockingQueue<>(poolSize);
  while (this.pool.remainingCapacity() > 0) {
    this.pool.add(vertexProgram.clone());
  }
}
origin: com.thinkaurelius.titan/titan-core

@Override
public VertexProgramScanJob<M> clone() {
  return new VertexProgramScanJob<>(this.idManager, this.memory, this.vertexMemory, this.vertexProgram
      .clone());
}
org.apache.tinkerpop.gremlin.process.computerVertexProgramclone

Javadoc

When multiple workers on a single machine need VertexProgram instances, it is possible to use clone. This will provide a speedier way of generating instances, over the VertexProgram#storeState and VertexProgram#loadState model. The default implementation simply returns the object as it assumes that the VertexProgram instance is a stateless singleton.

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
  • 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
  • getElementComputeKeys
  • storeState,
  • 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 12 Jupyter Notebook extensions
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