GitHub user dkuppitz opened a pull request:

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

    TINKERPOP-1639 Support simple String operations

    https://issues.apache.org/jira/browse/TINKERPOP-1639
    
    Added support for simple String operations. `CountLocalStep`, 
`RangeLocalStep` and `TailLocalStep` can now imitate `String::length()` and 
`String::substring()`.
    
    A few examples:
    
    ```
    gremlin> g.V().values("name").count(local)
    ==>5
    ==>5
    ==>3
    ==>4
    ==>6
    ==>5
    gremlin> g.V().values("name").limit(local, 3)
    ==>mar
    ==>vad
    ==>lop
    ==>jos
    ==>rip
    ==>pet
    gremlin> g.V().values("name").tail(local, 4)
    ==>arko
    ==>adas
    ==>lop
    ==>josh
    ==>pple
    ==>eter
    gremlin> g.V().values("name").group().by(range(local, 1, 2)).next()
    ==>a=[marko, vadas]
    ==>e=[peter]
    ==>i=[ripple]
    ==>o=[lop, josh]
    ```
    
    VOTE: +1

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

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

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

    https://github.com/apache/tinkerpop/pull/564.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 #564
    
----
commit c6f92c9ef65fd711028b37745eed6e94e9163f0b
Author: Daniel Kuppitz <[email protected]>
Date:   2017-02-24T10:13:53Z

    Added support for simple String operations. `CountLocalStep`, 
`RangeLocalStep` and `TailLocalStep` can now imitate `String::length()` and 
`String::substring()`.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to