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/18 18:39:00 UTC

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

     [ https://issues.apache.org/jira/browse/TINKERPOP3-681?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marko A. Rodriguez closed TINKERPOP3-681.
-----------------------------------------
    Resolution: Fixed

[~spmallette] did this. done.

> 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: Improvement
>          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)