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/10/01 23:12:27 UTC

[jira] [Updated] (TINKERPOP3-862) Add a TraversalSourceStrategy that provides "locked" values.

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

Marko A. Rodriguez updated TINKERPOP3-862:
------------------------------------------
    Issue Type: New Feature  (was: Bug)

> Add a TraversalSourceStrategy that provides "locked" values.
> ------------------------------------------------------------
>
>                 Key: TINKERPOP3-862
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-862
>             Project: TinkerPop 3
>          Issue Type: New Feature
>          Components: process
>    Affects Versions: 3.0.1-incubating
>            Reporter: Marko A. Rodriguez
>            Assignee: Marko A. Rodriguez
>             Fix For: 3.1.0-incubating
>
>
> We have:
> {code}
> withSack()
> withPath()
> withSideEffect()
> {code}
> This can get tedious to continuously type. If a user will always have something like {{withSack(1.0,sum)}}, then perhaps they can do this:
> {code}
> gremlin> g = graph.traversal(GraphTraversalSource.with(TraversalSourceStrategy.build().withSack(1.0,sum).create()))
> gremlin> g.V().sack() 
> ==>1.0
> ==>1.0
> ==>1.0
> ==>1.0
> ==>1.0
> ==>1.0
> {code}



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