incubator-gora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lewi...@apache.org
Subject svn commit: r1234412 - /incubator/gora/trunk/gora-cassandra/src/main/java/org/apache/gora/cassandra/store/CassandraClient.java
Date Sat, 21 Jan 2012 20:41:45 GMT
Author: lewismc
Date: Sat Jan 21 20:41:45 2012
New Revision: 1234412

URL: http://svn.apache.org/viewvc?rev=1234412&view=rev
Log:
commit to correct StringSerializer configuration for CassandraClient.

Modified:
    incubator/gora/trunk/gora-cassandra/src/main/java/org/apache/gora/cassandra/store/CassandraClient.java

Modified: incubator/gora/trunk/gora-cassandra/src/main/java/org/apache/gora/cassandra/store/CassandraClient.java
URL: http://svn.apache.org/viewvc/incubator/gora/trunk/gora-cassandra/src/main/java/org/apache/gora/cassandra/store/CassandraClient.java?rev=1234412&r1=1234411&r2=1234412&view=diff
==============================================================================
--- incubator/gora/trunk/gora-cassandra/src/main/java/org/apache/gora/cassandra/store/CassandraClient.java
(original)
+++ incubator/gora/trunk/gora-cassandra/src/main/java/org/apache/gora/cassandra/store/CassandraClient.java
Sat Jan 21 20:41:45 2012
@@ -29,7 +29,6 @@ import me.prettyprint.cassandra.serializ
 import me.prettyprint.cassandra.service.CassandraHostConfigurator;
 import me.prettyprint.hector.api.Cluster;
 import me.prettyprint.hector.api.Keyspace;
-import me.prettyprint.hector.api.Serializer;
 import me.prettyprint.hector.api.beans.OrderedRows;
 import me.prettyprint.hector.api.beans.OrderedSuperRows;
 import me.prettyprint.hector.api.beans.Row;
@@ -59,7 +58,7 @@ public class CassandraClient<K, T extend
   
   private CassandraMapping cassandraMapping = new CassandraMapping();
 
-  private Serializer<String> stringSerializer = new StringSerializer();
+  private StringSerializer stringSerializer = new StringSerializer();
   
   public void init() throws Exception {
     this.cassandraMapping.loadConfiguration();
@@ -137,7 +136,8 @@ public class CassandraClient<K, T extend
    * @param memberName the member name
    * @param value the member value
    */
-  public void addSubColumn(String key, String fieldName, String memberName, Object value)
{
+  @SuppressWarnings("unchecked")
+public void addSubColumn(String key, String fieldName, String memberName, Object value) {
     if (value == null) {
       return;
     }



Mime
View raw message