Skip to content

Commit 3f9bb43

Browse files
author
DvirDukhan
committed
Merge branch 'multi-exec' of https://github.com/RedisGraph/JRedisGraph into multi-exec
# Conflicts: # src/main/java/com/redislabs/redisgraph/impl/api/RedisGraph.java # src/main/java/com/redislabs/redisgraph/impl/resultset/ResultSetImpl.java
2 parents 2b82bac + 0be41a8 commit 3f9bb43

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package com.redislabs.redisgraph;
22

3-
import redis.clients.jedis.Jedis;
4-
53
public interface RedisGraphGeneralContext extends RedisGraph {
64

75
/**

src/main/java/com/redislabs/redisgraph/impl/api/AbstractRedisGraph.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import com.redislabs.redisgraph.RedisGraph;
44
import com.redislabs.redisgraph.ResultSet;
55
import com.redislabs.redisgraph.impl.Utils;
6-
import com.redislabs.redisgraph.impl.graph_cache.RedisGraphCaches;
76
import redis.clients.jedis.Jedis;
87

98
import java.util.List;

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import redis.clients.jedis.util.Pool;
1010
import redis.clients.jedis.util.SafeEncoder;
1111

12-
1312
/**
1413
*
1514
*/

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ private Node deserializeNode(List<Object> rawNodeData) {
136136
Node node = new Node();
137137
deserializeGraphEntityId(node, rawNodeData.get(0));
138138
List<Long> labelsIndices = (List<Long>) rawNodeData.get(1);
139-
for (long labelIndex : labelsIndices) {
140-
String label = cache.getLabel((int) labelIndex, redisGraph);
139+
for (Long labelIndex : labelsIndices) {
140+
String label = cache.getLabel(labelIndex.intValue(), redisGraph);
141141
node.addLabel(label);
142142
}
143143
deserializeGraphEntityProperties(node, (List<List<Object>>) rawNodeData.get(2));
@@ -151,7 +151,7 @@ private Node deserializeNode(List<Object> rawNodeData) {
151151
* @param rawEntityId raw representation of entity id to be set to the graph entity
152152
*/
153153
private void deserializeGraphEntityId(GraphEntity graphEntity, Object rawEntityId) {
154-
int id = (int) (long) rawEntityId;
154+
int id = ((Long) rawEntityId).intValue();
155155
graphEntity.setId(id);
156156
}
157157

0 commit comments

Comments
 (0)