hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r792034 - /hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/TestKeyValue.java
Date Wed, 08 Jul 2009 04:55:35 GMT
Author: stack
Date: Wed Jul  8 04:55:35 2009
New Revision: 792034

URL: http://svn.apache.org/viewvc?rev=792034&view=rev
Log:
HBASE-1622 Make KeyValue implement the Comparable interface to make it work with Cascading
-- reversed application

Modified:
    hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/TestKeyValue.java

Modified: hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/TestKeyValue.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/TestKeyValue.java?rev=792034&r1=792033&r2=792034&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/TestKeyValue.java (original)
+++ hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/TestKeyValue.java Wed Jul  8 04:55:35
2009
@@ -276,27 +276,4 @@
     // TODO actually write this test!
     
   }
-  
-  public void testComparableInterface() {
-  	byte [] row1 = Bytes.toBytes("row1");
-  	byte [] row2 = Bytes.toBytes("row2");
-  	byte [] fam1 = Bytes.toBytes("fam1");
-  	byte []	fam2 = Bytes.toBytes("fam2");
-  	byte [] qf1 = Bytes.toBytes("qf1");
-  	byte [] qf2 = Bytes.toBytes("qf2");
-  	byte [] val1 = Bytes.toBytes("val1");
-  	KeyValue kv1 = new KeyValue(row1, fam1, qf1, val1);
-  	KeyValue kv2 = new KeyValue(row2, fam2, qf2, val1);
-  	int res = 0;
-  	
-  	res = kv1.compareTo(kv2);
-  	assertTrue(res < 0);
-  	
-  	res = kv2.compareTo(kv1);
-  	assertTrue(res > 0);
-  	
-  	res = kv1.compareTo(kv1);
-  	assertTrue(res == 0);
-  }
-  
 }



Mime
View raw message