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

ASF GitHub Bot commented on TINKERPOP3-670:
-------------------------------------------

GitHub user mhfrantz opened a pull request:

    https://github.com/apache/incubator-tinkerpop/pull/64

    TINKERPOP3-670 tail step (v3)

    Replaces PR #61 
    
    Rebase to master

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/RedSeal-co/incubator-tinkerpop 
TINKERPOP3-670-tail-step.v3

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-tinkerpop/pull/64.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #64
    
----
commit 45c8c76dd33f0b28f01da7d96facd46de6b51a5b
Author: mhfrantz <[email protected]>
Date:   2015-05-08T01:29:22Z

    TINKERPOP3-670: Add 'tail' step

commit 8963c3ab3aa8fe96dd90aa0b51509b9b478dae1e
Author: mhfrantz <[email protected]>
Date:   2015-05-08T02:04:00Z

    Implement RangeLocalStep.toString

commit d75567e3f1ad40ee634569b13672a175ce0b1f37
Author: mhfrantz <[email protected]>
Date:   2015-05-08T13:30:43Z

    TINKERPOP3-670: Avoid ID's in unit tests, since they're not vendor agnostic

commit 3c772aac418a828d31a17ddd11c4fa64333180a8
Author: mhfrantz <[email protected]>
Date:   2015-05-08T13:52:09Z

    TINKERPOP3-670: Add overloads to default tail limit to 1

commit 116587cee043591aa99889389a7f89e76b0fc0ec
Author: mhfrantz <[email protected]>
Date:   2015-05-14T01:17:10Z

    TINKERPOP3-670: Add tail step to __

commit 8d71d00ef1189756839509b8a7909b0136b1cec7
Author: mhfrantz <[email protected]>
Date:   2015-05-14T06:55:00Z

    TINKERPOP3-670: Add repeat test for tail step

commit 06b6be1385af946c5e5fcbe4e72d2302f65895e7
Author: mhfrantz <[email protected]>
Date:   2015-05-14T07:45:12Z

    TINKERPOP3-670: Cloned tail step should not include traverser buffer 
contents

commit 87e4defb80707deafcebf9cde15cbd27b4eb7d64
Author: mhfrantz <[email protected]>
Date:   2015-05-14T21:38:28Z

    TINKERPOP3-670: Tail handles bulk and bypass during MapReduce

----


> tail step
> ---------
>
>                 Key: TINKERPOP3-670
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-670
>             Project: TinkerPop 3
>          Issue Type: Improvement
>          Components: process
>            Reporter: Matt Frantz
>
> The tail step has two scopes:
> * global: emits the last N traversers that pass through it.
> * local: emits a {{List}} containing the last N elements of the inbound 
> {{List}}
> Additionally, for {{tail(local, 1)}}, it emits a single element rather than a 
> {{List}} containing a single element.
> TINKERPOP3-639 provides motivation.
> Scenario: Global scope
> {noformat}
> gremlin> g.V().order().by(T.id, incr).tail(global, 2)
> ==>v[5]
> ==>v[6]
> {noformat}
> Scenario: Default scope is global
> {noformat}
> gremlin> g.V().order().by(T.id, incr).tail(2)
> ==>v[5]
> ==>v[6]
> {noformat}
> Scenario: Local scope, {{List}} input, N>1
> {noformat}
> gremlin> g.V().as('a').out().as('a').out().as('a').select('a').tail(local, 2)
> ==>[v[4], v[5]]
> ==>[v[4], v[3]]
> {noformat}
> Scenario: Local scope, {{List}} input, N=1
> {noformat}
> gremlin> g.V().as('a').out().as('a').out().as('a').select('a').tail(local, 1)
> ==>v[5]
> ==>v[3]
> {noformat}
> Scenario: Local scope, {{Map}} input, N>1
> {noformat}
> gremlin> g.V().as('a').out().as('b').out().as('c').select().tail(local, 2)
> ==>[b:v[4], c:v[5]]
> ==>[b:v[4], c:v[3]]
> {noformat}
> Scenario: Local scope, {{Map}} input, N=1
> {noformat}
> gremlin> g.V().as('a').out().as('b').out().as('c').select().tail(local, 1)
> ==>[c:v[5]]
> ==>[c:v[3]]
> {noformat}



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

Reply via email to