gora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djkevi...@apache.org
Subject [24/32] gora git commit: Update query result key mapping in aerospike module
Date Thu, 27 Jul 2017 18:45:50 GMT
Update query result key mapping in aerospike module


Project: http://git-wip-us.apache.org/repos/asf/gora/repo
Commit: http://git-wip-us.apache.org/repos/asf/gora/commit/6ee55e92
Tree: http://git-wip-us.apache.org/repos/asf/gora/tree/6ee55e92
Diff: http://git-wip-us.apache.org/repos/asf/gora/diff/6ee55e92

Branch: refs/heads/master
Commit: 6ee55e92440c2eb8a25bffce9fe0b18e1d49b67c
Parents: dbe962a
Author: nishadi <ndimeshi@gmail.com>
Authored: Tue Jul 25 23:49:21 2017 +0530
Committer: nishadi <ndimeshi@gmail.com>
Committed: Tue Jul 25 23:49:21 2017 +0530

----------------------------------------------------------------------
 .../java/org/apache/gora/aerospike/query/AerospikeQueryResult.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/gora/blob/6ee55e92/gora-aerospike/src/main/java/org/apache/gora/aerospike/query/AerospikeQueryResult.java
----------------------------------------------------------------------
diff --git a/gora-aerospike/src/main/java/org/apache/gora/aerospike/query/AerospikeQueryResult.java
b/gora-aerospike/src/main/java/org/apache/gora/aerospike/query/AerospikeQueryResult.java
index 3ddca3c..e135dc3 100644
--- a/gora-aerospike/src/main/java/org/apache/gora/aerospike/query/AerospikeQueryResult.java
+++ b/gora-aerospike/src/main/java/org/apache/gora/aerospike/query/AerospikeQueryResult.java
@@ -73,7 +73,7 @@ public class AerospikeQueryResult<K, T extends Persistent> extends
ResultBase<K,
     if (offset < 0 || offset > (resultRecords.size() - 1)) {
       return false;
     }
-    key = (K) resultRecords.get((int) this.offset).getKey().userKey;
+    key = (K) resultRecords.get((int) this.offset).getKey().userKey.getObject();
     persistent = (T) getDataStore()
             .createPersistentInstance(resultRecords.get((int) this.offset).getRecord(), fields);
     return true;


Mime
View raw message