Codota Logo
GremlinPipeline.addPipe
Code IndexAdd Codota to your IDE (free)

How to use
addPipe
method
in
com.tinkerpop.gremlin.java.GremlinPipeline

Best Java code snippets using com.tinkerpop.gremlin.java.GremlinPipeline.addPipe (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: com.tinkerpop.gremlin/gremlin-java

/**
 * Add an arbitrary pipe to the GremlinPipeline
 *
 * @param pipe the pipe to add to the pipeline
 * @param <T>  the type of the end of the pipe
 * @return the extended Pipeline
 */
public <T> GremlinPipeline<S, T> add(final Pipe<?, T> pipe) {
  this.addPipe(pipe);
  return (GremlinPipeline<S, T>) this;
}
origin: com.tinkerpop.gremlin/gremlin-java

public static GremlinPipeline optimizePipelineForQuery(final GremlinPipeline pipeline, final Pipe pipe) {
  if (!optimizePipelineForGraphQuery(pipeline, pipe))
    if (!optimizePipelineForVertexQuery(pipeline, pipe))
      pipeline.addPipe(pipe);
  return pipeline;
}
origin: com.tinkerpop.gremlin/gremlin-java

    queryPipe.setHighRange(((RangeFilterPipe) pipe).getHighRange());
  pipeline.addPipe(new IdentityPipe());
  return true;
} else {
origin: com.tinkerpop.gremlin/gremlin-java

  private static boolean optimizePipelineForGraphQuery(final GremlinPipeline pipeline, final Pipe pipe) {
    GraphQueryPipe queryPipe = null;
    for (int i = pipeline.size() - 1; i > 0; i--) {
      final Pipe temp = pipeline.get(i);
      if (temp instanceof GraphQueryPipe) {
        queryPipe = (GraphQueryPipe) temp;
        break;
      } else if (!(temp instanceof IdentityPipe))
        break;
    }

    if (null != queryPipe) {
      if (pipe instanceof PropertyFilterPipe) {
        final PropertyFilterPipe temp = (PropertyFilterPipe) pipe;
        queryPipe.addHasContainer(new QueryPipe.HasContainer(temp.getKey(), temp.getPredicate(), temp.getValue()));
      } else if (pipe instanceof IntervalFilterPipe) {
        final IntervalFilterPipe temp = (IntervalFilterPipe) pipe;
        queryPipe.addIntervalContainer(new QueryPipe.IntervalContainer(temp.getKey(), temp.getStartValue(), temp.getEndValue()));
      } else if (pipe instanceof RangeFilterPipe) {
        queryPipe.setLowRange(((RangeFilterPipe) pipe).getLowRange());
        queryPipe.setHighRange(((RangeFilterPipe) pipe).getHighRange());
      }
      pipeline.addPipe(new IdentityPipe());
      return true;
    } else {
      return false;
    }
  }
}
com.tinkerpop.gremlin.javaGremlinPipelineaddPipe

Popular methods of GremlinPipeline

  • <init>
  • out
    Add an OutPipe to the end of the Pipeline. Emit the adjacent outgoing vertices of the incoming verte
  • has
    Add an IdFilterPipe, LabelFilterPipe, or PropertyFilterPipe to the end of the Pipeline. If the incom
  • in
    Add a InPipe to the end of the Pipeline. Emit the adjacent incoming vertices for the incoming vertex
  • add
    Add an arbitrary pipe to the GremlinPipeline
  • as
    Wrap the previous step in an AsPipe. Useful for naming steps and is used in conjunction with various
  • iterator
  • back
    Add a BackFilterPipe to the end of the Pipeline. The object that was seen namedSteps ago is emitted.
  • both
    Add a BothPipe to the end of the Pipeline. Emit both the incoming and outgoing adjacent vertices for
  • dedup
    Add a DuplicateFilterPipe to the end of the Pipeline. Will only emit the object if the object genera
  • hasNot
    Add an IdFilterPipe, LabelFilterPipe, or PropertyFilterPipe to the end of the Pipeline. If the incom
  • outE
    Add an OutEdgesPipe to the end of the Pipeline. Emit the outgoing edges for the incoming vertex.
  • hasNot,
  • outE,
  • toList,
  • V,
  • _,
  • aggregate,
  • bothE,
  • count,
  • enablePath

Popular in Java

  • Reactive rest calls using spring rest template
  • onRequestPermissionsResult (Fragment)
  • getExternalFilesDir (Context)
  • getApplicationContext (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • JPanel (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now