GitHub user mhfrantz opened a pull request:
https://github.com/apache/incubator-tinkerpop/pull/60
TINKERPOP3-670 tail step (v1)
https://issues.apache.org/jira/browse/TINKERPOP3-670
This is implemented as specified in JIRA, with a couple more tests for good
measure.
As specified, the behavior for `tail(local, 1)` is special if the input is
a `List`, in that it emits the element and not a one-element `List`. That
makes it different from `limit(local, 1)`, but more like `select("x")` (for a
single step label.
In the spirit of "containers only when necessary", should `limit(local, 1)`
be changed to emit the element rather then a one-element `List`? I filed
https://issues.apache.org/jira/browse/TINKERPOP3-673 to think about that.
I had some OOM problems running the full integration test suite, but all of
the new tests are disabled for COMPUTER for various reasons.
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.v1
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-tinkerpop/pull/60.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 #60
----
commit b1a53fc7ca10a67ec0b18f16d917fd2571687b76
Author: mhfrantz <[email protected]>
Date: 2015-05-08T02:04:00Z
Implement RangeLocalStep.toString
commit fe9ac0edc07f753ab93e06b7d330b6f263977ba5
Author: mhfrantz <[email protected]>
Date: 2015-05-08T01:29:22Z
TINKERPOP3-670: Add 'tail' step
----
---
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.
---