cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1050414 - /cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/tools/SSTableExport.java
Date Fri, 17 Dec 2010 15:14:10 GMT
Author: jbellis
Date: Fri Dec 17 15:14:10 2010
New Revision: 1050414

URL: http://svn.apache.org/viewvc?rev=1050414&view=rev
Log:
formatting

Modified:
    cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/tools/SSTableExport.java

Modified: cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/tools/SSTableExport.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/tools/SSTableExport.java?rev=1050414&r1=1050413&r2=1050414&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/tools/SSTableExport.java
(original)
+++ cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/tools/SSTableExport.java
Fri Dec 17 15:14:10 2010
@@ -96,11 +96,12 @@ public class SSTableExport
             outs.print(column.timestamp());
             outs.print(", ");
             outs.print(column.isMarkedForDelete());
-            if (column instanceof ExpiringColumn) {
-              outs.print(", ");
-              outs.print(((ExpiringColumn)column).getTimeToLive());
-              outs.print(", ");
-              outs.print(column.getLocalDeletionTime());
+            if (column instanceof ExpiringColumn)
+            {
+                outs.print(", ");
+                outs.print(((ExpiringColumn) column).getTimeToLive());
+                outs.print(", ");
+                outs.print(column.getLocalDeletionTime());
             }
             outs.print("]");
             if (iter.hasNext())
@@ -303,13 +304,14 @@ public class SSTableExport
         try
         {
             cmd = parser.parse(options, args);
-        } catch (ParseException e1)
+        }
+        catch (ParseException e1)
         {
             System.err.println(e1.getMessage());
             System.err.println(usage);
             System.exit(1);
         }
-        
+
 
         if (cmd.getArgs().length != 1)
         {
@@ -332,13 +334,17 @@ public class SSTableExport
         }
 
         if (cmd.hasOption(ENUMERATEKEYS_OPTION))
+        {
             enumeratekeys(ssTableFileName, System.out);
-        else {
+        }
+        else
+        {
             if ((keys != null) && (keys.length > 0))
                 export(ssTableFileName, System.out, keys, excludes);
             else
                 export(ssTableFileName, excludes);
         }
+
         System.exit(0);
     }
 }



Mime
View raw message