FilterProtos.CompareFilter convert() {
    FilterProtos.CompareFilter.Builder builder = FilterProtos.CompareFilter.newBuilder();
    HBaseProtos.CompareType compareOp = CompareType.valueOf(this.op.name());
    builder.setCompareOp(compareOp);
    if (this.comparator != null) builder.setComparator(ProtobufUtil.toComparator(this.comparator));
    return builder.build();
  }
Returns A pb instance to represent this instance.
hbase-client/src/main/java/org/apache/hadoop/hbase/filter/CompareFilter.java