@Override
  public int compareTo(HiveChar rhs) {
    if (rhs == this) {
      return 0;
    }
    return this.getStrippedValue().compareTo(rhs.getStrippedValue());
  }
Set char value, padding or truncating the value to the size of len parameter.
common/src/java/org/apache/hadoop/hive/common/type/HiveChar.java