HBASE-1622 Make KeyValue implement the Comparable interface to make it work with Cascading

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@792027 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2009-07-08 04:13:55 +00:00
parent 6a5b635e6f
commit 6fed28f7c8
1 changed files with 6 additions and 2 deletions

View File

@ -540,8 +540,12 @@ public class KeyValue implements WritableComparable<KeyValue>, HeapSize {
value, voffset, vlength);
}
// Needed doing 'contains' on List. Only compares the key portion, not the
// value.
/**
* Needed doing 'contains' on List. Only compares the key portion, not the
* value.
* @param other Object to compare ourselves to.
* @return True if equal to <code>other</code>
*/
public boolean equals(Object other) {
KeyValue kv = (KeyValue)other;
// Comparing bytes should be fine doing equals test. Shouldn't have to