Tabnine Logo
GremlinPipeline.outE
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: com.tinkerpop.gremlin/gremlin-java

/**
 * Add an OutEdgesPipe to the end of the Pipeline.
 * Emit the outgoing edges for the incoming vertex.
 *
 * @param labels the edge labels to traverse
 * @return the extended Pipeline
 */
public GremlinPipeline<S, Edge> outE(final String... labels) {
  return this.outE(Integer.MAX_VALUE, labels);
}
origin: apache/incubator-atlas

@Override
protected Pipe getQueryPipe() {
  GremlinPipeline p;
  if (guid.equals("*")) {
    p = new GremlinPipeline().has(Constants.ENTITY_TEXT_PROPERTY_KEY).
        hasNot(Constants.ENTITY_TYPE_PROPERTY_KEY, "Taxonomy").outE();
  } else {
    p = new GremlinPipeline().has(Constants.GUID_PROPERTY_KEY, guid).outE();
  }
  //todo: this is basically the same pipeline used in TagRelation.asPipe()
  p.add(new FilterFunctionPipe<>(new PipeFunction<Edge, Boolean>() {
    @Override
    public Boolean compute(Edge edge) {
      String type = edge.getVertex(Direction.OUT).getProperty(Constants.ENTITY_TYPE_PROPERTY_KEY);
      VertexWrapper v = new TermVertexWrapper(edge.getVertex(Direction.IN));
      return edge.getLabel().startsWith(type) && v.getPropertyKeys().contains("available_as_tag");
    }
  }));
  return p.inV();
}
origin: apache/incubator-atlas

@Override
public Pipe asPipe() {
  //todo: encapsulate all of this path logic including path sep escaping and normalizing
  final int sepIdx = getField().indexOf(QueryFactory.PATH_SEP_TOKEN);
  final String edgeToken = getField().substring(0, sepIdx);
  GremlinPipeline pipeline = new GremlinPipeline();
  Relation relation = resourceDefinition.getRelations().get(fieldSegments[0]);
  if (relation != null) {
    pipeline = pipeline.outE();
    pipeline.add(relation.asPipe()).inV();
  } else {
    if (resourceDefinition.getProjections().get(fieldSegments[0]) != null) {
      return super.asPipe();
    } else {
      //todo: default Relation implementation
      pipeline = pipeline.outE().has("label", Text.REGEX, String.format(".*\\.%s", edgeToken)).inV();
    }
  }
  //todo: set resource definition from relation on underlying expression where appropriate
  String childFieldName = getField().substring(sepIdx + QueryFactory.PATH_SEP_TOKEN.length());
  underlyingExpression.setField(childFieldName);
  Pipe childPipe;
  if (childFieldName.contains(QueryFactory.PATH_SEP_TOKEN)) {
    childPipe = new ProjectionQueryExpression(underlyingExpression, resourceDefinition).asPipe();
  } else {
    childPipe = underlyingExpression.asPipe();
  }
  pipeline.add(childPipe);
  return negate ? new FilterFunctionPipe(new ExcludePipeFunction(pipeline)) : pipeline;
}
com.tinkerpop.gremlin.javaGremlinPipelineoutE

Javadoc

Add an OutEdgesPipe to the end of the Pipeline. Emit the outgoing edges for the incoming vertex.

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
  • toList
    Return a list of all the objects in the pipeline.
  • hasNot,
  • toList,
  • V,
  • _,
  • addPipe,
  • aggregate,
  • bothE,
  • count,
  • enablePath

Popular in Java

  • Running tasks concurrently on multiple threads
  • startActivity (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setRequestProperty (URLConnection)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JTable (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