public static TCompareOperator compareOpFromHBase(CompareOperator compareOp) {
    switch (compareOp) {
      case LESS:
        return TCompareOperator.LESS;
      case LESS_OR_EQUAL:
        return TCompareOperator.LESS_OR_EQUAL;
      case EQUAL:
        return TCompareOperator.EQUAL;
      case NOT_EQUAL:
        return TCompareOperator.NOT_EQUAL;
      case GREATER_OR_EQUAL:
        return TCompareOperator.GREATER_OR_EQUAL;
      case GREATER:
        return TCompareOperator.GREATER;
      case NO_OP:
        return TCompareOperator.NO_OP;
      default:
        return null;
    }
  }
Adds all the attributes into the Operation object
hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftUtilities.java