[ 
https://issues.apache.org/jira/browse/TINKERPOP-2207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16831727#comment-16831727
 ] 

ASF GitHub Bot commented on TINKERPOP-2207:
-------------------------------------------

dkuppitz commented on pull request #1108: TINKERPOP-2207 Provide 
SimpleValueMapStrategy
URL: https://github.com/apache/tinkerpop/pull/1108
 
 
   https://issues.apache.org/jira/browse/TINKERPOP-2207
   
   Implemented `SimpleValueMapStrategy`, which can be used by providers who do 
not support multi-valued properties.
   
   ```
   gremlin> g = TinkerFactory.createModern().traversal()
   ==>graphtraversalsource[tinkergraph[vertices:6 edges:6], standard]
   gremlin> g.V().valueMap()
   ==>[name:[marko],age:[29]]
   ==>[name:[vadas],age:[27]]
   ==>[name:[lop],lang:[java]]
   ==>[name:[josh],age:[32]]
   ==>[name:[ripple],lang:[java]]
   ==>[name:[peter],age:[35]]
   gremlin> g.withStrategies(SimpleValueMapStrategy.instance()).V().valueMap()
   ==>[name:marko,age:29]
   ==>[name:vadas,age:27]
   ==>[name:lop,lang:java]
   ==>[name:josh,age:32]
   ==>[name:ripple,lang:java]
   ==>[name:peter,age:35]
   ```
   
   VOTE +1
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Provide SimpleValueMapStrategy
> ------------------------------
>
>                 Key: TINKERPOP-2207
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2207
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: process
>    Affects Versions: 3.4.1
>            Reporter: Daniel Kuppitz
>            Assignee: Daniel Kuppitz
>            Priority: Major
>
> Implement a {{SimpleValueMapStrategy}} that can be used by providers who do 
> not support multi-valued properties. The strategy should automatically unfold 
> {{valueMap()}}'s values and thus turn them into single values.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to