@Override
  boolean areSerializedFieldsEqual(Filter o) {
    if (o == this) {
      return true;
    }
    if (!(o instanceof ColumnPaginationFilter)) {
      return false;
    }
    ColumnPaginationFilter other = (ColumnPaginationFilter) o;
    if (this.columnOffset != null) {
      return this.getLimit() == other.getLimit()
        && Bytes.equals(this.getColumnOffset(), other.getColumnOffset());
    }
    return this.getLimit() == other.getLimit() && this.getOffset() == other.getOffset();
  }
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/ColumnPaginationFilter.java