cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1025841 - /cassandra/trunk/src/java/org/apache/cassandra/cli/CliClient.java
Date Thu, 21 Oct 2010 06:06:58 GMT
Author: jbellis
Date: Thu Oct 21 06:06:58 2010
New Revision: 1025841

URL: http://svn.apache.org/viewvc?rev=1025841&view=rev
Log:
add back comparator to 'show keyspace' output.  patch by jbellis

Modified:
    cassandra/trunk/src/java/org/apache/cassandra/cli/CliClient.java

Modified: cassandra/trunk/src/java/org/apache/cassandra/cli/CliClient.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/cli/CliClient.java?rev=1025841&r1=1025840&r2=1025841&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/cli/CliClient.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/cli/CliClient.java Thu Oct 21 06:06:58 2010
@@ -1430,9 +1430,10 @@ public class CliClient 
             for (CfDef cf_def : ks_def.cf_defs)
             {
                 css_.out.println("    Column Family Name: " + cf_def.name);
-                if (cf_def.comment != null)
+                if (cf_def.comment != null && !cf_def.comment.isEmpty())
                     css_.out.printf("    \"%s\"\n", cf_def.comment);
                 css_.out.println("      Column Family Type: " + cf_def.column_type);
+                css_.out.println("      Column Sorted By: " + cf_def.comparator_type);
                 css_.out.printf("      Row cache size / save period: %s/%s\n", cf_def.row_cache_size,
cf_def.row_cache_save_period_in_seconds);
                 css_.out.printf("      Key cache size / save period: %s/%s\n", cf_def.key_cache_size,
cf_def.key_cache_save_period_in_seconds);
                 css_.out.printf("      Memtable thresholds: %s/%s/%s\n",



Mime
View raw message