Author: jbellis
Date: Thu Apr 15 21:42:24 2010
New Revision: 934604

URL: http://svn.apache.org/viewvc?rev=934604&view=rev
Log:
make contrib/client_only build again after String -> byte[] change.  patch by 
jbellis

Modified:
    cassandra/trunk/contrib/client_only/ClientOnlyExample.java

Modified: cassandra/trunk/contrib/client_only/ClientOnlyExample.java
URL: 
http://svn.apache.org/viewvc/cassandra/trunk/contrib/client_only/ClientOnlyExample.java?rev=934604&r1=934603&r2=934604&view=diff
==============================================================================
--- cassandra/trunk/contrib/client_only/ClientOnlyExample.java (original)
+++ cassandra/trunk/contrib/client_only/ClientOnlyExample.java Thu Apr 15 
21:42:24 2010
@@ -51,7 +51,7 @@ public class ClientOnlyExample
         final AbstractType comp = ColumnFamily.getComparatorFor("Keyspace1", 
"Standard1", null);
         for (int i = 0; i < 100; i++)
         {
-            RowMutation change = new RowMutation("Keyspace1", "key" + i);
+            RowMutation change = new RowMutation("Keyspace1", ("key" + 
i).getBytes());
             ColumnPath cp = new 
ColumnPath("Standard1").setColumn(("colb").getBytes());
             change.add(new QueryPath(cp), ("value" + i).getBytes(), 0);
 
@@ -95,7 +95,7 @@ public class ClientOnlyExample
         for (int i = 0; i < 100; i++)
         {
             List<ReadCommand> commands = new ArrayList<ReadCommand>();
-            SliceByNamesReadCommand readCommand = new 
SliceByNamesReadCommand("Keyspace1", "key" + i, new QueryPath("Standard1", 
null, null), cols);
+            SliceByNamesReadCommand readCommand = new 
SliceByNamesReadCommand("Keyspace1", ("key" + i).getBytes(), new 
QueryPath("Standard1", null, null), cols);
             readCommand.setDigestQuery(false);
             commands.add(readCommand);
             try


Reply via email to