HBASE-19160 expose CellComparator as IA.Public - addendum fixes compilation for branch-2
This commit is contained in:
parent
cfddfcf23c
commit
50f30668b8
|
@ -165,7 +165,7 @@ public class Import extends Configured implements Tool {
|
||||||
@edu.umd.cs.findbugs.annotations.SuppressWarnings(value = "EQ_COMPARETO_USE_OBJECT_EQUALS",
|
@edu.umd.cs.findbugs.annotations.SuppressWarnings(value = "EQ_COMPARETO_USE_OBJECT_EQUALS",
|
||||||
justification = "This is wrong, yes, but we should be purging Writables, not fixing them")
|
justification = "This is wrong, yes, but we should be purging Writables, not fixing them")
|
||||||
public int compareTo(KeyValueWritableComparable o) {
|
public int compareTo(KeyValueWritableComparable o) {
|
||||||
return CellComparatorImpl.COMPARATOR.compare(this.kv, ((KeyValueWritableComparable) o).kv);
|
return CellComparator.getInstance().compare(this.kv, o.kv);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class KeyValueWritableComparator extends WritableComparator {
|
public static class KeyValueWritableComparator extends WritableComparator {
|
||||||
|
|
Loading…
Reference in New Issue