Hello,
I implemented this in the branch TINKERPOP3-798.
https://github.com/apache/incubator-tinkerpop/commit/16d6078ca810e70cb3f62d98fcbbc244819f5bae
Notes:
* mapKeys() <=> select(keys).unfold()
* mapValues() <=> select(values).unfold()
* GraphTraversal.mapXXX() is Deprecated.
* MapKeysStep and MapValuesStep were deleted.
* SelectColumnStep was added.
* SelectColumnStep.Column.keys and SelectColumnStep.Column.values are
new enums that are statically imported.
We could easily add by()-modulation here where, for each key (or value), the
by() traversal processes them. This can always be added later without effecting
backwards compatibility.
Please review the branch and tell me what you think.
Thank you,
Marko.
http://markorodriguez.com
On Oct 7, 2015, at 6:00 PM, Matt Frantz <[email protected]> wrote:
> I think it fits with the general purpose of {{select}}, and it doesn't
> introduce any new Java overloads. FTW
>
> On Wed, Oct 7, 2015 at 12:37 PM, Marko Rodriguez <[email protected]>
> wrote:
>
>> No, easy deprecation.
>>
>> Marko.
>>
>> http://markorodriguez.com
>>
>> On Oct 7, 2015, at 1:13 PM, Stephen Mallette <[email protected]> wrote:
>>
>>> That one looks like an easy candidate for deprecation of mapKeys and
>>> selectKeys? or is removing the flatten behavior going to ultimately
>> break
>>> the semantics of how that all operates?
>>>
>>> On Wed, Oct 7, 2015 at 2:57 PM, Marko Rodriguez <[email protected]>
>>> wrote:
>>>
>>>> Hello,
>>>>
>>>> Please see this ticket:
>>>> https://issues.apache.org/jira/browse/TINKERPOP3-798
>>>>
>>>> If anyone has any thoughts, please speak up.
>>>>
>>>> Marko.
>>>>
>>>> http://markorodriguez.com
>>>>
>>>>
>>
>>