@Override
  public int compareTo(SignedInt128 o) {
    if (negative) {
      if (o.negative) {
        return o.mag.compareTo(mag);
      } else {
        return -1;
      }
    } else {
      if (o.negative) {
        return 1;
      } else {
        return mag.compareTo(o.mag);
      }
    }
  }
Specialized version.

@param o
         the object to compare
@return whether the object is equal to this object
common/src/java/org/apache/hadoop/hive/common/type/SignedInt128.java