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

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

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

origin: apache/tinkerpop

  @Override
  public void storeState(final Configuration configuration) {
    VertexProgram.super.storeState(configuration);
  }
}
origin: apache/tinkerpop

@Override
public void storeState(final Configuration configuration) {
  VertexProgram.super.storeState(configuration);
}
origin: apache/tinkerpop

@Override
public void storeState(final Configuration config) {
  VertexProgram.super.storeState(config);
  if (configuration != null) {
    ConfigurationUtils.copy(configuration, config);
  }
}
origin: apache/tinkerpop

@Override
public void storeState(final Configuration config) {
  VertexProgram.super.storeState(config);
  if (configuration != null) {
    ConfigurationUtils.copy(configuration, config);
  }
}
origin: apache/tinkerpop

@Override
public void storeState(final Configuration config) {
  VertexProgram.super.storeState(config);
  if (configuration != null) {
    ConfigurationUtils.copy(configuration, config);
  }
}
origin: apache/tinkerpop

@Override
public void storeState(final Configuration configuration) {
  configuration.setProperty("state", this.state);
  VertexProgram.super.storeState(configuration);
}
origin: apache/tinkerpop

@Override
public void storeState(final Configuration configuration) {
  VertexProgram.super.storeState(configuration);
  this.traversal.storeState(configuration, TRAVERSAL);
  TraversalVertexProgram.storeHaltedTraversers(configuration, this.haltedTraversers);
}
origin: apache/tinkerpop

public ProgramVertexProgramStep(final Traversal.Admin traversal, final VertexProgram vertexProgram) {
  super(traversal);
  this.configuration = new HashMap<>();
  final MapConfiguration base = new MapConfiguration(this.configuration);
  base.setDelimiterParsingDisabled(true);
  vertexProgram.storeState(base);
  this.toStringOfVertexProgram = vertexProgram.toString();
  this.traverserRequirements = vertexProgram.getTraverserRequirements();
}
origin: apache/tinkerpop

@Override
public void storeState(final Configuration configuration) {
  VertexProgram.super.storeState(configuration);
  configuration.setProperty(DIRECTION_CFG_KEY, direction.name());
}
origin: apache/tinkerpop

@Override
public void storeState(final Configuration configuration) {
  VertexProgram.super.storeState(configuration);
  this.traversal.storeState(configuration, VertexProgramStep.ROOT_TRAVERSAL);
  TraversalVertexProgram.storeHaltedTraversers(configuration, this.haltedTraversers);
  configuration.setProperty(ProgramVertexProgramStep.STEP_ID, this.programStep.getId());
}
origin: apache/tinkerpop

@Override
public void storeState(final Configuration configuration) {
  VertexProgram.super.storeState(configuration);
  configuration.setProperty(ALPHA, this.alpha);
  configuration.setProperty(EPSILON, this.epsilon);
  configuration.setProperty(PROPERTY, this.property);
  configuration.setProperty(MAX_ITERATIONS, this.maxIterations);
  if (null != this.edgeTraversal)
    this.edgeTraversal.storeState(configuration, EDGE_TRAVERSAL);
  if (null != this.initialRankTraversal)
    this.initialRankTraversal.storeState(configuration, INITIAL_RANK_TRAVERSAL);
}
origin: apache/tinkerpop

this.vertexProgram.storeState(vertexProgramConfiguration);
origin: org.apache.tinkerpop/gremlin-test

  @Override
  public void storeState(final Configuration configuration) {
    VertexProgram.super.storeState(configuration);
  }
}
origin: apache/tinkerpop

@Override
public void storeState(final Configuration configuration) {
  VertexProgram.super.storeState(configuration);
  this.sourceVertexFilterTraversal.storeState(configuration, SOURCE_VERTEX_FILTER);
  this.targetVertexFilterTraversal.storeState(configuration, TARGET_VERTEX_FILTER);
  this.edgeTraversal.storeState(configuration, EDGE_TRAVERSAL);
  this.distanceTraversal.storeState(configuration, DISTANCE_TRAVERSAL);
  configuration.setProperty(INCLUDE_EDGES, this.includeEdges);
  if (this.maxDistance != null)
    configuration.setProperty(MAX_DISTANCE, maxDistance);
  if (this.traversal != null) {
    this.traversal.storeState(configuration, ProgramVertexProgramStep.ROOT_TRAVERSAL);
    configuration.setProperty(ProgramVertexProgramStep.STEP_ID, this.programStep.getId());
  }
  TraversalVertexProgram.storeHaltedTraversers(configuration, this.haltedTraversers);
}
origin: org.apache.tinkerpop/gremlin-core

@Override
public void storeState(final Configuration config) {
  VertexProgram.super.storeState(config);
  if (configuration != null) {
    ConfigurationUtils.copy(configuration, config);
  }
}
origin: org.apache.tinkerpop/gremlin-test

@Override
public void storeState(final Configuration configuration) {
  configuration.setProperty("state", this.state);
  VertexProgram.super.storeState(configuration);
}
origin: org.apache.tinkerpop/gremlin-core

@Override
public void storeState(final Configuration config) {
  VertexProgram.super.storeState(config);
  if (configuration != null) {
    ConfigurationUtils.copy(configuration, config);
  }
}
origin: org.apache.tinkerpop/gremlin-core

@Override
public void storeState(final Configuration configuration) {
  VertexProgram.super.storeState(configuration);
  this.traversal.storeState(configuration, TRAVERSAL);
  TraversalVertexProgram.storeHaltedTraversers(configuration, this.haltedTraversers);
}
origin: org.apache.tinkerpop/gremlin-test

@Override
public void storeState(final Configuration configuration) {
  VertexProgram.super.storeState(configuration);
  this.traversal.storeState(configuration, VertexProgramStep.ROOT_TRAVERSAL);
  TraversalVertexProgram.storeHaltedTraversers(configuration, this.haltedTraversers);
  configuration.setProperty(ProgramVertexProgramStep.STEP_ID, this.programStep.getId());
}
origin: org.apache.tinkerpop/gremlin-core

@Override
public void storeState(final Configuration configuration) {
  VertexProgram.super.storeState(configuration);
  configuration.setProperty(ALPHA, this.alpha);
  configuration.setProperty(EPSILON, this.epsilon);
  configuration.setProperty(PROPERTY, this.property);
  configuration.setProperty(MAX_ITERATIONS, this.maxIterations);
  if (null != this.edgeTraversal)
    this.edgeTraversal.storeState(configuration, EDGE_TRAVERSAL);
  if (null != this.initialRankTraversal)
    this.initialRankTraversal.storeState(configuration, INITIAL_RANK_TRAVERSAL);
}
org.apache.tinkerpop.gremlin.process.computerVertexProgramstoreState

Javadoc

When it is necessary to store the state of the VertexProgram, this method is called. This is typically required when the VertexProgram needs to be serialized to another machine. Note that what is stored is simply the instance/configuration state, not any processed data. The default implementation provided simply stores the VertexProgram class name for reflective reconstruction. It is typically a good idea to VertexProgram.super.storeState().

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
  • 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
  • startActivity (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • addToBackStack (FragmentTransaction)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • CodeWhisperer alternatives
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