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

stephen mallette updated TINKERPOP3-511:
----------------------------------------
    Component/s: process

> New .barrier() step
> -------------------
>
>                 Key: TINKERPOP3-511
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-511
>             Project: TinkerPop 3
>          Issue Type: Improvement
>          Components: process
>            Reporter: Daniel Kuppitz
>             Fix For: 3.0.0.GA
>
>
> We need a {code}.barrier(){code} step that basically wraps 
> {code}.fold().unfold(){code}.
> We came to this conclusion after discussing how we can do {code:or```} 
> (union), {code}and{code} (intersect) and ultimately {code}xor{code} 
> (difference). The tricky one is {code}xor{code} which currently can be 
> written as:
> {code}groovy
> gremlin> g.V().has(label, "person").union(
>              __.has("age", lte, 29).store("x"),
>              __.has("age", gte, 29).store("y")).fold().unfold().union(
>                  __.except("x"),
>                  __.except("y"))
> ==>v[2]
> ==>v[4]
> ==>v[6]
> {{`}}



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

Reply via email to