@Override
  public int compareTo(Offset o) {
    int compare = name.compareTo(o.name);
    return compare == 0 ? Long.compare(offset, o.offset) : compare;
  }
Converts this object into its byte representation.
@return the byte representation of this object.
ambry-store/src/main/java/com/github/ambry/store/Offset.java