Skip to content

TINKERPOP-2284 Added elementMap() step#1189

Merged
spmallette merged 1 commit intotp34from
TINKERPOP-2284
Sep 13, 2019
Merged

TINKERPOP-2284 Added elementMap() step#1189
spmallette merged 1 commit intotp34from
TINKERPOP-2284

Conversation

@spmallette
Copy link
Contributor

https://issues.apache.org/jira/browse/TINKERPOP-2284

Given that we only return reference objects for graph elements now, there is a lot of extra project()/valueMap() work to do for the simple and common need to return all the structure of a graph element. elementMap() simplifies all that to a single step without a ton of options and added features.

All tests pass with docker/build.sh -t -i

VOTE +1

Copy link
Member

@FlorianHockmann FlorianHockmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reviewed the docs and changes to the .NET and Python code and only found one nit.

VOTE +1

Given that we only return reference objects for graph elements now, there is a lot of extra project()/valueMap() work to do for the simple and common need to return all the structure of a graph element. elementMap() simplifies all that to a single step without a ton of options and added features.
Copy link
Contributor

@jorgebay jorgebay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really liked the approach on the new step.

VOTE +1

----

It is important to note that the map of a vertex assumes that cardinality for each key is `single` and if it is `list`
then only the first item encountered will be returned. As `single` is the more common cardinality for properties this
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call!

@spmallette spmallette merged commit d4f7e9d into tp34 Sep 13, 2019
@spmallette spmallette deleted the TINKERPOP-2284 branch September 13, 2019 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants