@@ -20,24 +20,12 @@ RedisGraph Java client
2020 <dependency >
2121 <groupId >com.redislabs</groupId >
2222 <artifactId >jredisgraph</artifactId >
23- <version >1.0.6</version >
24- </dependency >
25- </dependencies >
26-
27- Or
28-
29- <dependencies >
30- <dependency >
31- <groupId >com.redislabs</groupId >
32- <artifactId >jredisgraph</artifactId >
33- <version >2.0.0-rc3</version >
23+ <version >2.0.0</version >
3424 </dependency >
3525 </dependencies >
3626```
3727
3828### Snapshots
39- To be used with RedisGraph 2.0 (not officially released)
40-
4129``` xml
4230 <repositories >
4331 <repository >
5442 <dependency >
5543 <groupId >com.redislabs</groupId >
5644 <artifactId >jredisgraph</artifactId >
57- <version >2.0.0 -SNAPSHOT</version >
45+ <version >2.0.1 -SNAPSHOT</version >
5846 </dependency >
5947 </dependencies >
6048```
6149
6250# Example: Using the Java Client
63- ## Up to 2.0.0
64- ``` java
65- package com.redislabs.redisgraph ;
66-
67- public class RedisGraphExample {
68- public static void main (String [] args ) {
69-
70- RedisGraphAPI api = new RedisGraphAPI (" social" );
71-
72- api. query(" CREATE (:person{name:'roi',age:32})" );
73- api. query(" CREATE (:person{name:%s,age:%d})" , " amit" , 30 );
74-
75- api. query(" MATCH (a:person), (b:person) WHERE (a.name = 'roi' AND b.name='amit') CREATE (a)-[:knows]->(b)" );
76-
77- ResultSet resultSet = api. query(" MATCH (a:person)-[:knows]->(b:person) RETURN a, b" );
78-
79- while (resultSet. hasNext()){
80- Record record = resultSet. next();
81- System . out. println(record. getString(" a.name" ));
82- }
83- }
84- }
85-
86- ```
87- ## From 2.0.0
88-
8951``` java
9052package com.redislabs.redisgraph ;
9153
0 commit comments