tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] spmallette opened a new pull request #968: TINKERPOP-2078 Added ReferenceGraph
Date Tue, 23 Oct 2018 22:36:51 GMT
spmallette opened a new pull request #968: TINKERPOP-2078 Added ReferenceGraph
URL: https://github.com/apache/tinkerpop/pull/968
 
 
   https://issues.apache.org/jira/browse/TINKERPOP-2078
   
   Basically replaces `EmptyGraph.instance().withRemote()` for `ReferenceGraph.open().withRemote()`
which is a bit more intuitive.
   
   ```text
   gremlin> graph = ReferenceGraph.open()
   ==>referencegraph[reference]
   gremlin> g = graph.traversal().withRemote('conf/remote-graph.properties')
   ==>graphtraversalsource[referencegraph[reference], standard]
   gremlin> g.addV('person').property('name','stephen')
   ==>v[16]
   gremlin> g.V().valueMap()
   ==>[name:[stephen]]
   ==>[name:[marko],age:[29]]
   ==>[name:[vadas],age:[27]]
   ==>[name:[lop],lang:[java]]
   ==>[name:[josh],age:[32]]
   ==>[name:[ripple],lang:[java]]
   ==>[name:[peter],age:[35]]
   ```
   
   Builds with `mvn clean install && mvn verify -pl gremlin-server -DskipIntegrationTests=false`
   
   VOTE +1

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message