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

ASF GitHub Bot commented on TINKERPOP-1549:
-------------------------------------------

GitHub user dkuppitz opened a pull request:

    https://github.com/apache/tinkerpop/pull/529

    TINKERPOP-1549 Implement skip()

    https://issues.apache.org/jira/browse/TINKERPOP-1549
    
    Added `skip(long)` and `skip((Scope,long)` which call the `range(low,high)` 
equivalents with -1 as the high.
    
    Also added test cases and fixed the OLAP implementation (which probably 
never worked before).
    
    Note, that I implemented `equals()` for `RangeGlobalStep`, because hash 
code collisions are very likely. For the same reason I also removed the hash 
code inequality check from `StepTest`.
    
    VOTE: +1

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

    $ git pull https://github.com/apache/tinkerpop TINKERPOP-1549

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

    https://github.com/apache/tinkerpop/pull/529.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 #529
    
----
commit 3d0aa6e37e1ff40481cc8cde7e01862d66220c00
Author: Daniel Kuppitz <[email protected]>
Date:   2017-01-10T09:48:27Z

    Added `skip(long)` and `skip((Scope,long)` which call the `range(low,high)` 
equivalents with -1 as the high.
    Also added test cases and fixed the OLAP implementation (which probably 
never worked before).

----


> Implement skip()
> ----------------
>
>                 Key: TINKERPOP-1549
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1549
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: process
>            Reporter: Daniel Kuppitz
>            Assignee: Daniel Kuppitz
>
> We should have a {{.skip(x)}} and {{.skip(local, x)}}. The functionality is 
> already provided by {{RangeStep}} ({{.range(x, -1)}} skips {{x}} elements and 
> emits the remainder).



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

Reply via email to