You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Marko A. Rodriguez (JIRA)" <ji...@apache.org> on 2015/05/14 19:35:59 UTC

[jira] [Created] (TINKERPOP3-681) SubgraphStrategy should use traversal, not lambdas for filtering

Marko A. Rodriguez created TINKERPOP3-681:
---------------------------------------------

             Summary: SubgraphStrategy should use traversal, not lambdas for filtering
                 Key: TINKERPOP3-681
                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-681
             Project: TinkerPop 3
          Issue Type: Bug
          Components: process
            Reporter: Marko A. Rodriguez
            Assignee: stephen mallette
             Fix For: 3.0.0.GA


{{SubgraphStrategy}} should use {{Traversal}} to determine if a vertex/edge should exist in the projection. See {{TraversalUtil.test(object,traversal)}} which simply returns true or false if the {{traversal.hasNext()}}. It also auto-resets the traversal, etc. Thus, simple dimple.

If a user does want to use a lambda, well, then their traversal is:

{code}
__.filter{ // mylambda }}
{code}

This will allow {{SubgraphStrategy}} to work in OLAP as well as be consistent with the Gremlin pattern -- no lambdas. If you use a lambda, its in a {{Traversal}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)