[
https://issues.apache.org/jira/browse/TINKERPOP3-757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14608582#comment-14608582
]
Daniel Kuppitz commented on TINKERPOP3-757:
-------------------------------------------
Not at all. If you only want to select a subset, it's
{{.select(subset).mapXxx()}}, thus no {{mapXxx(keys...)}} needed in my opinion.
> Steps to convert a Map to a List
> --------------------------------
>
> Key: TINKERPOP3-757
> URL: https://issues.apache.org/jira/browse/TINKERPOP3-757
> Project: TinkerPop 3
> Issue Type: Improvement
> Reporter: Daniel Kuppitz
>
> We need 2 steps to convert a map to a list (either keys or values).
> *Example:*
> {code}
> g.V().hasLabel("song").match(
>
> __.as("song").out("followedBy").groupCount().order(local).by(valueDecr).flatMap
> {it.get().keySet().iterator()}.limit(1).as("mostCommonFollower")
> ).select("song","mostCommonFollower").by("name")
> {code}
> *Should be:*
> {code}
> g.V().hasLabel("song").match(
>
> __.as("song").out("followedBy").groupCount().order(local).by(valueDecr).keys().limit(1).as("mostCommonFollower")
> ).select("song","mostCommonFollower").by("name")
> {code}
> Not sure about the names. Maybe {{mapKeys()}} and {{mapValues()}}..?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)