[
https://issues.apache.org/jira/browse/TINKERPOP-1243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15830255#comment-15830255
]
Marko A. Rodriguez commented on TINKERPOP-1243:
-----------------------------------------------
So this is possible except the problem is we don't know what last item returned
is as patterns can be executed in any order. Perhaps we make it so it always
returns the first pattern left-as -- i.e. "input."
> MatchStep should be a FilterStep, not a MapStep
> -----------------------------------------------
>
> Key: TINKERPOP-1243
> URL: https://issues.apache.org/jira/browse/TINKERPOP-1243
> Project: TinkerPop
> Issue Type: Improvement
> Components: process
> Affects Versions: 3.1.1-incubating, 3.2.0-incubating
> Reporter: Marko A. Rodriguez
> Labels: breaking
>
> {{MatchStep}} should really be a {{FilterStep}}. It simply filters out all
> traversers that don't match the patterns. However, given that you typically
> {{select()}} after {{match()}}, a {{Map<String,Object>}} is generated. The
> benefit of making it a {{FilterStep}} is that people can use {{match()}} to
> filter without having to deal with unrolling the {{Map}}. Moreover, it feels
> more consistent with the language constructs.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)