cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alaksh...@apache.org
Subject svn commit: r756758 - in /incubator/cassandra/trunk/src/org/apache/cassandra/test: DBTest.java TestRunner.java
Date Fri, 20 Mar 2009 21:04:02 GMT
Author: alakshman
Date: Fri Mar 20 21:04:02 2009
New Revision: 756758

URL: http://svn.apache.org/viewvc?rev=756758&view=rev
Log:
Removed reference to unused class.

Modified:
    incubator/cassandra/trunk/src/org/apache/cassandra/test/DBTest.java
    incubator/cassandra/trunk/src/org/apache/cassandra/test/TestRunner.java

Modified: incubator/cassandra/trunk/src/org/apache/cassandra/test/DBTest.java
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/src/org/apache/cassandra/test/DBTest.java?rev=756758&r1=756757&r2=756758&view=diff
==============================================================================
--- incubator/cassandra/trunk/src/org/apache/cassandra/test/DBTest.java (original)
+++ incubator/cassandra/trunk/src/org/apache/cassandra/test/DBTest.java Fri Mar 20 21:04:02
2009
@@ -110,18 +110,6 @@
         }             
     }
     
-    private static void doSequentialScannerTest() throws Throwable
-    {
-/*        SequentialScanner scanner = new SequentialScanner("Mailbox");
-        while ( scanner.hasNext() )
-        {
-            Row row = scanner.next();  
-            System.out.println( row.getColumnFamily("Test") );
-            System.out.println( row.getColumnFamily("Test2") );
-        }
-        */
-    }
-    
     public static void doTest()
     {
         String host = "insearch00";

Modified: incubator/cassandra/trunk/src/org/apache/cassandra/test/TestRunner.java
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/src/org/apache/cassandra/test/TestRunner.java?rev=756758&r1=756757&r2=756758&view=diff
==============================================================================
--- incubator/cassandra/trunk/src/org/apache/cassandra/test/TestRunner.java (original)
+++ incubator/cassandra/trunk/src/org/apache/cassandra/test/TestRunner.java Fri Mar 20 21:04:02
2009
@@ -59,7 +59,6 @@
 import org.apache.cassandra.db.ReadMessage;
 import org.apache.cassandra.db.Row;
 import org.apache.cassandra.db.RowMutation;
-import org.apache.cassandra.db.SequentialScanner;
 import org.apache.cassandra.db.Table;
 import org.apache.cassandra.io.BufferedRandomAccessFile;
 import org.apache.cassandra.io.DataInputBuffer;
@@ -172,48 +171,6 @@
         fis.close();
     }
     
-    private static void doScan() throws Throwable
-    {        
-        SequentialScanner scanner = new SequentialScanner("Mailbox");  
-        FileOutputStream fos = new FileOutputStream("C:\\Engagements\\Keys.dat", true);
-        int count = 0;
-        while ( scanner.hasNext() )
-        {
-            Row row = scanner.next();
-            fos.write(row.key().getBytes());
-            fos.write(System.getProperty("line.separator").getBytes());
-            Map<String, ColumnFamily> cfs = row.getColumnFamilies();
-            Set<String> keys = cfs.keySet();
-            
-            for ( String key : keys )
-            {
-                System.out.println(row.getColumnFamily(key));                
-            }           
-        }                  
-        System.out.println("Done ...");
-        fos.close();
-    }
-    
-    private static void doScan2(String table) throws Throwable
-    {
-        SequentialScanner scanner = new SequentialScanner(table);
-        while ( scanner.hasNext() )
-        {
-            Row row = scanner.next();            
-            Map<String, ColumnFamily> cfs = row.getColumnFamilies();
-            RowMutation rm = new RowMutation(table, row.key());
-            Set<String> cfNames = cfs.keySet();
-            
-            for ( String cfName  : cfNames )
-            {
-                rm.add(cfName, row.getColumnFamily(cfName));                            
  
-            } 
-            
-            rm.apply();
-        }                  
-        System.out.println("Done ...");        
-    }
-    
     public static void main(String[] args) throws Throwable
     {  
         // System.out.println( lastIndexOf("ababcbc", "abc") );



Mime
View raw message