gora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r1431683 - in /gora/trunk: CHANGES.txt gora-cassandra/src/main/java/org/apache/gora/cassandra/store/CassandraStore.java
Date Thu, 10 Jan 2013 21:54:41 GMT
Author: kazk
Date: Thu Jan 10 21:54:41 2013
New Revision: 1431683

URL: http://svn.apache.org/viewvc?rev=1431683&view=rev
Log:
GORA-182 Nutch 2.1 does not work with gora-cassandra 0.2.1

Modified:
    gora/trunk/CHANGES.txt
    gora/trunk/gora-cassandra/src/main/java/org/apache/gora/cassandra/store/CassandraStore.java

Modified: gora/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/gora/trunk/CHANGES.txt?rev=1431683&r1=1431682&r2=1431683&view=diff
==============================================================================
--- gora/trunk/CHANGES.txt (original)
+++ gora/trunk/CHANGES.txt Thu Jan 10 21:54:41 2013
@@ -6,6 +6,8 @@ Gora Change Log
 
 trunk (current development)
 
+* GORA-182 Nutch 2.1 does not work with gora-cassandra 0.2.1 (kazk)
+
 * GORA-193 Make sure gora-core test dependency is always generated when packaging (lewismc)
 
 * GORA-186 Show better errors when a field is missing in HBase mapping (Alfonso Nishikawa
via hsaputra)

Modified: gora/trunk/gora-cassandra/src/main/java/org/apache/gora/cassandra/store/CassandraStore.java
URL: http://svn.apache.org/viewvc/gora/trunk/gora-cassandra/src/main/java/org/apache/gora/cassandra/store/CassandraStore.java?rev=1431683&r1=1431682&r2=1431683&view=diff
==============================================================================
--- gora/trunk/gora-cassandra/src/main/java/org/apache/gora/cassandra/store/CassandraStore.java
(original)
+++ gora/trunk/gora-cassandra/src/main/java/org/apache/gora/cassandra/store/CassandraStore.java
Thu Jan 10 21:54:41 2013
@@ -304,7 +304,13 @@ public class CassandraStore<K, T extends
             fieldValue = newRecord;
             break;
           case MAP:
-            // needs to keep State.DELETED.
+            StatefulHashMap map = (StatefulHashMap) fieldValue;
+            StatefulHashMap newMap = new StatefulHashMap();
+            for (Object mapKey : map.keySet()) {
+              newMap.put(mapKey, map.get(mapKey));
+              newMap.putState(mapKey, map.getState(mapKey));
+            }
+            fieldValue = newMap;
             break;
           case ARRAY:
             GenericArray array = (GenericArray) fieldValue;



Mime
View raw message