gora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lewi...@apache.org
Subject svn commit: r1341264 - in /gora/trunk: CHANGES.txt gora-cassandra/src/main/java/org/apache/gora/cassandra/store/CassandraMapping.java
Date Mon, 21 May 2012 23:20:10 GMT
Author: lewismc
Date: Mon May 21 23:20:10 2012
New Revision: 1341264

URL: http://svn.apache.org/viewvc?rev=1341264&view=rev
Log:
commit to address GORA-139 and update to CHANGES.txt

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

Modified: gora/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/gora/trunk/CHANGES.txt?rev=1341264&r1=1341263&r2=1341264&view=diff
==============================================================================
--- gora/trunk/CHANGES.txt (original)
+++ gora/trunk/CHANGES.txt Mon May 21 23:20:10 2012
@@ -6,6 +6,8 @@ Gora Change Log
 
 0.3 (trunk) Current Development:
 
+* GORA-139  Creates Cassandra column family with BytesType for column value validator (and
comparators), instead of UTF8Type (Kazuomi Kashii via lewismc)
+
 * GORA-131 gora-cassandra should support other key types than String (Kazuomi Kashii via
lewismc)
 
 * GORA-132 Uses ByteBufferSerializer for column value to support various data types rather
than StringSerializer (Kazuomi Kashii via lewismc)

Modified: gora/trunk/gora-cassandra/src/main/java/org/apache/gora/cassandra/store/CassandraMapping.java
URL: http://svn.apache.org/viewvc/gora/trunk/gora-cassandra/src/main/java/org/apache/gora/cassandra/store/CassandraMapping.java?rev=1341264&r1=1341263&r2=1341264&view=diff
==============================================================================
--- gora/trunk/gora-cassandra/src/main/java/org/apache/gora/cassandra/store/CassandraMapping.java
(original)
+++ gora/trunk/gora-cassandra/src/main/java/org/apache/gora/cassandra/store/CassandraMapping.java
Mon May 21 23:20:10 2012
@@ -162,13 +162,13 @@ public class CassandraMapping {
         this.superFamilies.add(familyName);
         LOG.info("Added super column family: '" + familyName + "'");
         cfDef.setColumnType(ColumnType.SUPER);
-        cfDef.setSubComparatorType(ComparatorType.UTF8TYPE);
+        cfDef.setSubComparatorType(ComparatorType.BYTESTYPE);
       }
       
       cfDef.setKeyspaceName(this.keyspaceName);
       cfDef.setName(familyName);
-      cfDef.setComparatorType(ComparatorType.UTF8TYPE);
-      cfDef.setDefaultValidationClass(ComparatorType.UTF8TYPE.getClassName());
+      cfDef.setComparatorType(ComparatorType.BYTESTYPE);
+      cfDef.setDefaultValidationClass(ComparatorType.BYTESTYPE.getClassName());
       
       this.columnFamilyDefinitions.put(familyName, cfDef);
 



Mime
View raw message