@Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }

    Offset other = (Offset) o;
    return compareTo(other) == 0;
  }
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