@Override
  boolean areSerializedFieldsEqual(Filter o) {
    if (o == this) {
      return true;
    }
    if (!(o instanceof CompareFilter)) {
      return false;
    }
    CompareFilter other = (CompareFilter) o;
    return this.getCompareOperator().equals(other.getCompareOperator())
      && (this.getComparator() == other.getComparator()
        || this.getComparator().areSerializedFieldsEqual(other.getComparator()));
  }
Returns true if and only if the fields of the filter that are serialized are equal to the
corresponding fields in other. Used for testing.
hbase-client/src/main/java/org/apache/hadoop/hbase/filter/CompareFilter.java