Author: jbellis
Date: Thu Mar 4 16:47:22 2010
New Revision: 919061
URL: http://svn.apache.org/viewvc?rev=919061&view=rev
Log:
minor cleanup of ClientOnlyExample. patch by jbellis
Modified:
incubator/cassandra/trunk/contrib/client_only/ClientOnlyExample.java
Modified: incubator/cassandra/trunk/contrib/client_only/ClientOnlyExample.java
URL:
http://svn.apache.org/viewvc/incubator/cassandra/trunk/contrib/client_only/ClientOnlyExample.java?rev=919061&r1=919060&r2=919061&view=diff
==============================================================================
--- incubator/cassandra/trunk/contrib/client_only/ClientOnlyExample.java
(original)
+++ incubator/cassandra/trunk/contrib/client_only/ClientOnlyExample.java Thu
Mar 4 16:47:22 2010
@@ -44,6 +44,7 @@
}
catch (Exception ex)
{
+ throw new AssertionError(ex);
}
// do some writing.
@@ -51,7 +52,7 @@
for (int i = 0; i < 100; i++)
{
RowMutation change = new RowMutation("Keyspace1", "key" + i);
- ColumnPath cp = new
ColumnPath("Standard1").setSuper_column(null).setColumn(("colb").getBytes());
+ ColumnPath cp = new
ColumnPath("Standard1").setColumn(("colb").getBytes());
change.add(new QueryPath(cp), ("value" + i).getBytes(), 0);
// don't call change.apply(). The reason is that is makes a
static call into Table, which will perform
@@ -65,6 +66,7 @@
}
catch (Exception ex)
{
+ throw new AssertionError(ex);
}
System.out.println("wrote key" + i);
}
@@ -82,6 +84,7 @@
}
catch (Exception ex)
{
+ throw new AssertionError(ex);
}
// do some queries.
@@ -119,7 +122,6 @@
{
throw new RuntimeException(e);
}
-
}
// no need to do this: