[
https://issues.apache.org/jira/browse/TINKERPOP-1243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15629068#comment-15629068
]
Marko A. Rodriguez commented on TINKERPOP-1243:
-----------------------------------------------
Dah. This is not as easy as I thought. I was hoping that
{{match().select("a","b")}} would just work with {{MatchStep}} as a
{{FilterStep}}. Unfortunately, you have you to do
{{match().select(last,"a","b")}} as you can have repeats. This actually begs
the question. Should a {{as("a").identity().as("a").select("a")}} return a
2-element list or just the single. That is, set or list. :| ... That is a rats
nest I dare not get into.
> 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)