tinkerpop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Mallette (Jira)" <j...@apache.org>
Subject [jira] [Commented] (TINKERPOP-2315) Implement some form of clone() or reset() for Traversal in GLVs
Date Fri, 13 Mar 2020 11:01:00 GMT

    [ https://issues.apache.org/jira/browse/TINKERPOP-2315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17058631#comment-17058631
] 

Stephen Mallette commented on TINKERPOP-2315:
---------------------------------------------

It looks like I only concerned myself with ensuring the traversal was reusable as it was and
didn't bother to make sure all internals were being cloned - TINKERPOP-2350 

[~cscetbon] is there any chance you have time to try to fix that problem and offer a pull
request?

> Implement some form of clone() or reset() for Traversal in GLVs
> ---------------------------------------------------------------
>
>                 Key: TINKERPOP-2315
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2315
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: dotnet, javascript, python
>    Affects Versions: 3.3.9
>            Reporter: Stephen Mallette
>            Assignee: Stephen Mallette
>            Priority: Major
>             Fix For: 3.5.0, 3.4.5, 3.3.10
>
>
> There doesn't seem to be a method to do what we do in Java fairly often:
> {code}
> attached = g.V().hasLabel('OID').out('attached')
> assert attached.clone().count().next() == 4
> uids = attached.clone().dedup().toList()
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message