You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Matt Frantz (JIRA)" <ji...@apache.org> on 2015/04/30 17:54:07 UTC

[jira] [Created] (TINKERPOP3-652) select from Map should be explicit

Matt Frantz created TINKERPOP3-652:
--------------------------------------

             Summary: select from Map should be explicit
                 Key: TINKERPOP3-652
                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-652
             Project: TinkerPop 3
          Issue Type: Improvement
          Components: process
            Reporter: Matt Frantz


Currently, {{select}} looks at the value in the traverser, and if it is a {{Map}}, it treats its arguments as keys, and extracts values from the {{Map}}.  Otherwise, it treats its arguments as step labels and extracts values from the {{Path}}.  It would seem less confusing to make this choice explicit.

The two modes of {{select}} feel a bit like the two modes of {{range}} distinguished by the {{Scope}} parameter.  Does {{select}} need a {{local}} option to make it expect a {{Map}}?

Or would {{selectKeys}} be more consistent with {{hasKeys}}?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)