Skip to content

Commit 45399e3

Browse files
author
DvirDukhan
committed
modified package structure
1 parent 3f85675 commit 45399e3

File tree

9 files changed

+16
-19
lines changed

9 files changed

+16
-19
lines changed

src/main/java/com/redislabs/redisgraph/RedisGraph.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.redislabs.redisgraph;
22

3-
import com.redislabs.redisgraph.impl.GraphCache;
3+
import com.redislabs.redisgraph.impl.graph_cache.GraphCache;
44
import com.redislabs.redisgraph.impl.ResultSetImpl;
55
import org.apache.commons.text.translate.AggregateTranslator;
66
import org.apache.commons.text.translate.CharSequenceTranslator;

src/main/java/com/redislabs/redisgraph/impl/Edge.java renamed to src/main/java/com/redislabs/redisgraph/graph_entities/Edge.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.redislabs.redisgraph.impl;
1+
package com.redislabs.redisgraph.graph_entities;
22

33
import java.util.Objects;
44

src/main/java/com/redislabs/redisgraph/impl/GraphEntity.java renamed to src/main/java/com/redislabs/redisgraph/graph_entities/GraphEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.redislabs.redisgraph.impl;
1+
package com.redislabs.redisgraph.graph_entities;
22

33

44
import com.redislabs.redisgraph.ResultSet.ResultSetScalarTypes;

src/main/java/com/redislabs/redisgraph/impl/Node.java renamed to src/main/java/com/redislabs/redisgraph/graph_entities/Node.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.redislabs.redisgraph.impl;
1+
package com.redislabs.redisgraph.graph_entities;
22

33
import java.util.ArrayList;
44
import java.util.List;

src/main/java/com/redislabs/redisgraph/impl/Property.java renamed to src/main/java/com/redislabs/redisgraph/graph_entities/Property.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.redislabs.redisgraph.impl;
1+
package com.redislabs.redisgraph.graph_entities;
22

33
import com.redislabs.redisgraph.ResultSet;
44

src/main/java/com/redislabs/redisgraph/impl/ResultSetImpl.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
package com.redislabs.redisgraph.impl;
22

3-
import com.redislabs.redisgraph.Header;
4-
import com.redislabs.redisgraph.Record;
5-
import com.redislabs.redisgraph.ResultSet;
6-
import com.redislabs.redisgraph.Statistics;
3+
import com.redislabs.redisgraph.*;
4+
import com.redislabs.redisgraph.graph_entities.Edge;
5+
import com.redislabs.redisgraph.graph_entities.GraphEntity;
6+
import com.redislabs.redisgraph.graph_entities.Node;
7+
import com.redislabs.redisgraph.graph_entities.Property;
8+
import com.redislabs.redisgraph.impl.graph_cache.GraphCache;
79
import redis.clients.jedis.util.SafeEncoder;
810

911
import java.util.ArrayList;

src/main/java/com/redislabs/redisgraph/impl/GraphCache.java renamed to src/main/java/com/redislabs/redisgraph/impl/graph_cache/GraphCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.redislabs.redisgraph.impl;
1+
package com.redislabs.redisgraph.impl.graph_cache;
22

33
import com.redislabs.redisgraph.RedisGraph;
44

src/main/java/com/redislabs/redisgraph/impl/GraphCacheList.java renamed to src/main/java/com/redislabs/redisgraph/impl/graph_cache/GraphCacheList.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.redislabs.redisgraph.impl;
1+
package com.redislabs.redisgraph.impl.graph_cache;
22

33
import com.redislabs.redisgraph.Record;
44
import com.redislabs.redisgraph.RedisGraph;

src/test/java/com/redislabs/redisgraph/RedisGraphAPITest.java

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
import java.util.stream.Collectors;
88
import java.util.stream.IntStream;
99

10-
import com.redislabs.redisgraph.impl.Edge;
11-
import com.redislabs.redisgraph.impl.Node;
12-
import com.redislabs.redisgraph.impl.Property;
10+
import com.redislabs.redisgraph.graph_entities.Edge;
11+
import com.redislabs.redisgraph.graph_entities.Node;
12+
import com.redislabs.redisgraph.graph_entities.Property;
1313
import org.junit.After;
1414
import org.junit.Assert;
1515
import org.junit.Before;
@@ -411,11 +411,6 @@ public void testAdditionToProcedures(){
411411
Assert.assertNotNull(api.query("social", "CREATE (:person{name:'amit',age:30})"));
412412
Assert.assertNotNull(api.query("social", "MATCH (a:person), (b:person) WHERE (a.name = 'roi' AND b.name='amit') CREATE (a)-[:knows]->(b)"));
413413

414-
415-
// List<ResultSet> resultSets = IntStream.range(0,16).parallel().
416-
// mapToObj(i-> api.query("social", "MATCH (a:person)-[r:knows]->(b:person) RETURN a,r")).
417-
// collect(Collectors.toList());
418-
419414
//expected objects init
420415
Property nameProperty = new Property("name", ResultSet.ResultSetScalarTypes.PROPERTY_STRING, "roi");
421416
Property ageProperty = new Property("age", ResultSet.ResultSetScalarTypes.PROPERTY_INTEGER, 32);

0 commit comments

Comments
 (0)